Use C stdio functions for score files and save files.
Switching from Unix file descriptor operations to C standard FILE* functions will reduce portability problems.
This commit is contained in:
parent
f8d1f422c8
commit
c661fd79d4
33 changed files with 426 additions and 439 deletions
|
|
@ -80,7 +80,6 @@ int pray_time = 0;
|
|||
int spell_power = 0;
|
||||
int turns = 0; /* Number of turns player has taken */
|
||||
int quest_item = 0; /* Item player is looking for */
|
||||
int scorefd = -1; /* File descriptor for score file */
|
||||
int cols = 0; /* number of columns in terminal */
|
||||
int lines = 0; /* number of lines on the terminal */
|
||||
char nfloors = -1; /* Number of floors in this dungeon */
|
||||
|
|
@ -134,6 +133,7 @@ bool askme = TRUE;
|
|||
bool in_shell = FALSE;
|
||||
bool daytime = TRUE;
|
||||
bool use_savedir = FALSE;
|
||||
FILE *scoreboard = NULL; /* Score file */
|
||||
FILE *logfile = NULL;
|
||||
LEVTYPE levtype; /* type of level i'm on */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue