Rune Central
http://runequake.com/forums/

cmdhist.dat
http://runequake.com/forums/viewtopic.php?f=9&t=945
Page 1 of 1

Author:  13Homer [ Tue Oct 18, 2005 2:27 am ]
Post subject:  cmdhist.dat

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?

Author:  Jozsef [ Tue Oct 18, 2005 6:59 am ]
Post subject: 

No there isn't. It's just made this way. But I can make it to save it /joequake.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/