]> de.git.xonotic.org Git - xonotic/darkplaces.git/commit
reworked userdir path selection, now has 4 "tiers":
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 1 May 2011 16:33:10 +0000 (16:33 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 1 May 2011 21:18:22 +0000 (23:18 +0200)
commit475a451bbac370078cf0456b23dda4be39e921cc
treed323328fefbb9d712645f7fe66578c10b76501a2
parentdd175f8bdf153d6d7f535820dd02ae3cbddb7fc2
reworked userdir path selection, now has 4 "tiers":
NOHOME - uses basedir for configs
HOME - uses basedir on Windows, ~/.gamename/ on OSX and Linux
MYGAMES - uses My Games on Windows, ~/.gamename/ on Linux and OSX
SAVEDGAMES - uses Saved Games/gamename/ on Vista+, ~/.gamename/ on Linux
and ~/Library/Application Support/gamename/ on OSX
The tiers are tried in reverse order and any existing one will be used,
new ones will always be the last one.
If gamedirname1 is "id1" then Windows will use NOHOME rather than create
a new userdir when none are found. (but you can still create one or use
-mygames or -savedgames commandline options to make it do so)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11085 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ebcf972cfa9c79f263fd0ca752d90fa2b2614521
common.h
fs.c