Sounds simple, doesn't it? Appdrive$ + Appdir$ of course!
Not in this case though. This is my dilemma: The game must be available in two versions. A installer for beginner computer users, and a .zip version for the more advanced.
The installer will by default install the game into the program files\nameofgame folder. An admin account is required to write to that directory, so logically, an admin will usually install the game.
A limited account can not write to the program files folder. Only administrators will be able to save and load within the game, as they are the only ones with permission to write to Appdrive$ + Appdir$.
So... I could store the savegames somewhere in the Documents and Settings\User folder. But where? Besides, I sort of need to retrieve the directory name where the files should go, regardless of which language version of Windows is installed (because the folders might be named differently). I basically need an AppDataDir$ predefined constant.
But then, if the user extracted the .zip version, I certainly do NOT want to write outside the game folder. AppDrive$ + AppDir$ is a lot better option in that case...