changeset 226:b922f66acf4d

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.
author John "Elwin" Edwards
date Thu, 03 Mar 2016 21:30:38 -0500
parents 4f6e056438eb
children 696277507a2e
files srogue/main.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/srogue/main.c	Wed Mar 02 21:28:34 2016 -0500
+++ b/srogue/main.c	Thu Mar 03 21:30:38 2016 -0500
@@ -52,9 +52,7 @@
 	time_t now;
 	char *homedir = roguehome();
 
-#ifdef __DJGPP__
-	_fmode = O_BINARY;
-#endif
+	md_init();
 
 	if (homedir == NULL)
         	homedir = "";