First of all, I've already seen some other threads regarding similar issue, but none gave me any working solution. Oh, and let's call my game "AppNamePortable". As for game's data folder, I'll go with simply "[datafolder]".
So, I decided to make one game portable. Using the template and generating the launcher went smooth and without any problems.
And now: said game saves data in "C:Users/[username]/appdata/local/[datafolder]". The thing is, the portable version of this game (made by myself) instead of saving data in "AppNamePortable/Data" folder, still uses my PC account's "appdata" folder, leaving no trace in "AppNamePortable/Data" folder.
I've already tried cutting and pasting "[datafolder]" from "C:Users/[username]/appdata/local" to "AppNamePortable/Data" folder and then adding
[DirectoriesMove]
[datafolder]=%LOCALAPPDATA%\[datafolder]
to "AppNamePortable.ini". It worked, but only partially. "[datafolder]" got successfully copied from "AppNamePortable/Data" to "C:Users/[username]/appdata/local" when starting the game, but the new/updated data didn't get copied back to "AppNamePortable/Data" when I closed the game.
Is there any solution?
%PAL:DataDir%\DataFolder=%LOCALAPPDATA%\DataFolder
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
Sadly, this command's not even doing anything :/ It's not even copying "[datafolder]" from "AppNamePortable/Data" to "C:Users/[username]/appdata/local" when starting the game.
[DirectoriesMove]
%PAL:DataDir%\DataFolder=%LOCALAPPDATA%\DataFolder
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
That's exactly how I did it and it's not working.