changeset 27:8a604636b077

Use STDIO when enabled.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 19 Aug 2017 15:54:14 +0300
parents 288e688aaac3
children ed71c8bbeb76
files .hgignore Makefile demo.c
diffstat 3 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Sat Aug 19 15:46:11 2017 +0300
+++ b/.hgignore	Sat Aug 19 15:54:14 2017 +0300
@@ -7,3 +7,4 @@
 *.dll
 *.exe
 obj/
+bin/
--- a/Makefile	Sat Aug 19 15:46:11 2017 +0300
+++ b/Makefile	Sat Aug 19 15:54:14 2017 +0300
@@ -27,7 +27,7 @@
 package: linux-bin mingw-win32 $(DATA)
 	strip $(BINPATH)/*.bin $(BINPATH)/*.exe
 	$(RM) $(PACKAGE)
-	@cp LICENSE.txt README.txt file_id.diz $(BINPATH)
+	@cp SDL.dll LICENSE.txt README.txt file_id.diz $(BINPATH)
 	cd $(BINPATH) && zip -x "*~" -9 $(PACKAGE) *
 
 
--- a/demo.c	Sat Aug 19 15:46:11 2017 +0300
+++ b/demo.c	Sat Aug 19 15:54:14 2017 +0300
@@ -18,8 +18,11 @@
     engine->optPackFilename  = "bussi.dat";
     engine->optDataPath      = NULL;
 
-    engine->optResFlags      = DRF_USE_PACK | DRF_PRELOAD_RES;
-//    engine->optResFlags      = DRF_USE_PACK | DRF_PRELOAD_RES | DRF_USE_STDIO;
+    engine->optResFlags      = DRF_USE_PACK | DRF_PRELOAD_RES
+#ifdef DM_USE_STDIO
+    | DRF_USE_STDIO
+#endif
+    ;
 
     engine->optAudioSetup    = DM_ASETUP_JSS;