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?