diff --git a/sc2/src/sc2code/libs/graphics/sdl/sdl_common.c b/sc2/src/sc2code/libs/graphics/sdl/sdl_common.c index 08e1299e9..f3e980dd5 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/sdl_common.c +++ b/sc2/src/sc2code/libs/graphics/sdl/sdl_common.c @@ -29,6 +29,8 @@ #include "libs/graphics/drawcmd.h" #include "libs/input/sdl/vcontrol.h" #include "bbox.h" +#include "port.h" +#include "libs/uio.h" SDL_Surface *SDL_Video; SDL_Surface *SDL_Screen; @@ -135,7 +137,7 @@ TFB_ProcessEvents () if (ImmediateInputState.debug) { FlushInput (); - fprintf (stderr, "This would enter debug mode if we had one yet, but we don't.\n"); + uio_debugInteractive(stdin, stdout, stderr); } } diff --git a/sc2/src/sc2code/libs/uio/Makeinfo b/sc2/src/sc2code/libs/uio/Makeinfo index 1231c0f19..02bb2a3ae 100644 --- a/sc2/src/sc2code/libs/uio/Makeinfo +++ b/sc2/src/sc2code/libs/uio/Makeinfo @@ -7,9 +7,9 @@ if [ -n "$uqm_USE_ZIP_IO" ]; then uqm_SUBDIRS="$uqm_SUBDIRS zip" fi -if [ -n "$DEBUG" -o -n "$uqm_UIO_DEBUG" ]; then +#if [ -n "$DEBUG" -o -n "$uqm_UIO_DEBUG" ]; then uqm_CFILES="$uqm_CFILES debug.c" -fi +#fi if [ -n "$MEMDEBUG" ]; then uqm_CFILES="$uqm_CFILES memdebug.c"