Rune Central

The Official Rune Quake Message Board
It is currently Mon Dec 23, 2024 12:16 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: cmdhist.dat
PostPosted: Tue Oct 18, 2005 2:27 am 
Offline
User avatar

Joined: Tue Dec 09, 2003 5:49 am
Posts: 27
Location: Poland (Warsaw)
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?

_________________
"Wymiana swin nic nie da, trzeba zabrac koryto" UPR


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Oct 18, 2005 6:59 am 
Offline
User avatar

Joined: Fri Oct 24, 2003 2:09 pm
Posts: 252
Location: Hungary
No there isn't. It's just made this way. But I can make it to save it /joequake.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group