otavepto / gbe_fork

Fork of https://gitlab.com/Mr_Goldberg/goldberg_emulator
https://gitlab.com/Mr_Goldberg/goldberg_emulator
GNU Lesser General Public License v3.0
193 stars 56 forks source link

Steam Userdata Folder Save Location #62

Closed ghost closed 2 months ago

ghost commented 4 months ago

Greetings! Can you make the Steam userdata folder save to the Goldberg SteamEmu Saves folder? So like other Steam Emu's (CODEX). This way we can use the Denuvo token without changing the Steam folder.

Detanup01 commented 4 months ago

If you find the code where it want to look for steam userdata folder I happily change it but I didnt see anywhere

otavepto commented 4 months ago

I'll take a look and make a list for you with these places. They're mostly in LocalStorage.

otavepto commented 4 months ago

Maybe I understood this one incorrectly, I was thinking of this function which sets the base path for any data: %appdata%\Goldberg SteamEmu Saves, unless overridden by creating a file local_save.txt

https://github.com/otavepto/gbe_fork/blob/e52fda0bc02c68616112541e6c09192b6d844550/dll/local_storage.cpp#L437

Detanup01 commented 4 months ago

yeah I made along the way and still didnt see any mention to Steam UserData folder, might be some game calling getfile with system stuff and not from steam emu, which other PR #50 talking about kinda.

ghost commented 4 months ago

For example, Football Manager 2023 is protected by Denuvo and requires a Denuvo token for the MKDEV crack (like other Denuvo games). The Denuvo token is normally located in the Steam\userdata folder for cracked/uncracked games. In CODEX Emu we can redirect it somewhere else. I wonder if we can do the same for Goldberg Emu?

305491843-dd1b4b0f-15d4-4816-bc79-3efed55fd960

otavepto commented 4 months ago

That would be this function (most likely I hope) https://github.com/otavepto/gbe_fork/blob/e64242a24872b0685116e965b7f450bb8795ce2f/dll/dll/steam_user.h#L152

otavepto commented 2 months ago

I don't see the point of this especially since the local_save option allows a portable behavior, if anyone has more insight and a good reason why it might be advantageous over local_save feel free to open a new issue