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
config file location in code?
-
dskiller1
- Rookie

- Posts: 20
- Joined: 18 Sep 2016, 02:33
config file location in code?
Last edited by dskiller1 on 12 May 2018, 17:22, edited 1 time in total.
-
Forgon
- Code contributor

- Posts: 298
- Joined: 07 Dec 2016, 22:23
Re: config file location in code?
In the function 'initializeConfigDir()', located at './src/main.cpp:340'.dskiller1 wrote:where is in source that tells the portable version to put the warzone config folder? [...]
To determine its location, Warzone 2100 will first attempt to use the PhysFS function PHYSFS_getPrefDir().
-
dskiller1
- Rookie

- Posts: 20
- Joined: 18 Sep 2016, 02:33
Re: config file location in code?
ok thankyou