Super-Rogue: begin fixing restore failures on Windows.
Start to solve the problem by calling md_init() to set _fmode. Now reading a savefile only triggers an error handler and causes an abort instead of a crash.
This commit is contained in:
parent
8bf09d3064
commit
cfda1f88e8
1 changed files with 1 additions and 3 deletions
|
|
@ -52,9 +52,7 @@ main(int argc, char *argv[], char *envp[])
|
|||
time_t now;
|
||||
char *homedir = roguehome();
|
||||
|
||||
#ifdef __DJGPP__
|
||||
_fmode = O_BINARY;
|
||||
#endif
|
||||
md_init();
|
||||
|
||||
if (homedir == NULL)
|
||||
homedir = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue