Why cmdhist.dat is saved in CWD (current working directory)?
Why not in $BASEDIR or $BASEDIR/joequake?
I think on Windows it's not the problem but on Linux it can be. I'm usually starting JoeQuake from command line and here is the result:
Code:
~/era$ locate cmdhist.dat
/mnt/32/usr/local/bin/cmdhist.dat
/mnt/32/home/homer/cmdhist.dat
/mnt/32/cmdhist.dat
/mnt/large/games/quake/fc1/cmdhist.dat
/mnt/large/games/quake/_new/cmdhist.dat
/mnt/large/games/quake/_sda/cmdhist.dat
/mnt/large/games/quake/_src/dev_joequake/0.14b839.2/cmdhist.dat
/mnt/large/games/quake/_src/dev_joequake/0.14b839_64/cmdhist.dat
/mnt/large/games/quake/_src/dev_joequake/0.14b839/cmdhist.dat
/mnt/large/games/quake/xmen/cmdhist.dat
/mnt/large/games/quake/nehahra/cmdhist.dat
/mnt/large/games/quake/joequake/cmdhist.dat
/mnt/large/games/quake/cmdhist.dat
Saving config.cfg:
Code:
if (!(f = fopen(va("%s/%s", com_gamedir, cfgname), "w")))
saving cmdhist.dat:
Code:
if (con_initialized && (cmdhist = fopen("cmdhist.dat", "wb")))
Is there any important reason for saving cmdhist.dat in that way?