srogue: remove remnants of deleted savefile checks.
save_file() used fstat() and direct write() as part of the inode check which was deleted in f11eeafc. These operations no longer had any effect.
This commit is contained in:
parent
b1e2b6206d
commit
214c2f6608
1 changed files with 1 additions and 10 deletions
|
|
@ -160,7 +160,6 @@ dosave()
|
||||||
save_file(savef)
|
save_file(savef)
|
||||||
FILE *savef;
|
FILE *savef;
|
||||||
{
|
{
|
||||||
reg int fnum;
|
|
||||||
int slines = LINES;
|
int slines = LINES;
|
||||||
int scols = COLS;
|
int scols = COLS;
|
||||||
|
|
||||||
|
|
@ -168,20 +167,12 @@ FILE *savef;
|
||||||
_djstat_flags |= _STAT_INODE; /* so turn off computing it for now */
|
_djstat_flags |= _STAT_INODE; /* so turn off computing it for now */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* force allocation of the buffer now so that inodes, etc
|
|
||||||
* can be checked when restoring saved games.
|
|
||||||
*/
|
|
||||||
fnum = fileno(savef);
|
|
||||||
fstat(fnum, &sbuf);
|
|
||||||
write(fnum, "RDK", 4);
|
|
||||||
lseek(fnum, 0L, 0);
|
|
||||||
encwrite(version,strlen(version)+1,savef);
|
encwrite(version,strlen(version)+1,savef);
|
||||||
encwrite(&slines,sizeof(slines),savef);
|
encwrite(&slines,sizeof(slines),savef);
|
||||||
encwrite(&scols,sizeof(scols),savef);
|
encwrite(&scols,sizeof(scols),savef);
|
||||||
msg("");
|
msg("");
|
||||||
rs_save_file(savef);
|
rs_save_file(savef);
|
||||||
close(fnum);
|
fclose(savef);
|
||||||
md_onsignal_exit();
|
md_onsignal_exit();
|
||||||
wclear(cw);
|
wclear(cw);
|
||||||
draw(cw);
|
draw(cw);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue