# HG changeset patch # User Matti Hamalainen # Date 1476695622 -10800 # Node ID 301e379894ab69e641f56bef07b5a385046569ac # Parent 41df6868905cbf049148a310c46d6ae13afff865 Enable stdiofs when DM_DEBUG=yes. diff -r 41df6868905c -r 301e379894ab config.mak --- a/config.mak Mon Oct 03 11:25:31 2016 +0300 +++ b/config.mak Mon Oct 17 12:13:42 2016 +0300 @@ -1,4 +1,6 @@ # Additional binaries (aka the demo) +#DM_DEBUG=yes + DEMO_BIN=krapula DEMO_OBJS=demo.o dmsimple.o @@ -28,7 +30,9 @@ DM_USE_TREMOR=no DM_USE_PACKFS=yes -DM_USE_STDIO=no +ifeq ($(DM_DEBUG),yes) +DM_USE_STDIO=yes +endif DM_USE_MEMIO=no DM_GFX_BM_TEXT=yes diff -r 41df6868905c -r 301e379894ab demo.c --- a/demo.c Mon Oct 03 11:25:31 2016 +0300 +++ b/demo.c Mon Oct 17 12:13:42 2016 +0300 @@ -320,7 +320,11 @@ engine->optPackFilename = "orvellys.dat"; engine->optDataPath = NULL; - engine->optResFlags = DRF_USE_PACK | DRF_PRELOAD_RES; + engine->optResFlags = DRF_USE_PACK | DRF_PRELOAD_RES +#if defined(DM_DEBUG) + | DRF_USE_STDIO +#endif + ; engine->optAudioSetup = DM_ASETUP_JSS;