Page 1 of 1

config file location in code?

Posted: 12 May 2018, 16:42
by dskiller1
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
thankyou

Re: config file location in code?

Posted: 12 May 2018, 17:20
by Forgon
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().

Re: config file location in code?

Posted: 12 May 2018, 17:28
by dskiller1
ok thankyou