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:
John "Elwin" Edwards 2016-03-03 21:30:38 -05:00
parent 8bf09d3064
commit cfda1f88e8

View file

@ -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 = "";