For code related discussions and questions
- Posts: 18
- Joined: 18 Sep 2016, 02:33
where is in source that tells the portable version to put the warzone config folder?
like if I want it to go to documents folder or the user/appdata/roaming folder
Last edited by dskiller1
on 12 May 2018, 17:22, edited 1 time in total.
- Code contributor
- Posts: 136
- Joined: 07 Dec 2016, 22:23
dskiller1 wrote:where is in source that tells the portable version to put the warzone config folder? [...]
In the function 'initializeConfigDir()', located at './src/main.cpp:340
To determine its location, Warzone 2100 will first attempt to use the PhysFS function PHYSFS_getPrefDir()