config file location in code?

For code related discussions and questions
Post Reply
dskiller1
Rookie
Rookie
Posts: 20
Joined: 18 Sep 2016, 02:33

config file location in code?

Post by dskiller1 » 12 May 2018, 16:42

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
Last edited by dskiller1 on 12 May 2018, 17:22, edited 1 time in total.

Forgon
Code contributor
Code contributor
Posts: 161
Joined: 07 Dec 2016, 22:23

Re: config file location in code?

Post by Forgon » 12 May 2018, 17:20

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().

dskiller1
Rookie
Rookie
Posts: 20
Joined: 18 Sep 2016, 02:33

Re: config file location in code?

Post by dskiller1 » 12 May 2018, 17:28

ok thankyou

Post Reply