diff srogue/main.c @ 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 94a0d9dd5ce1
children 3d4252fa2ed3
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 = "";