From b8d6ce9d148fe1eacfe7b2ef670109e261174d21 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Wed, 9 Jul 2003 04:23:01 +0000 Subject: [PATCH] Enabling uio debugging. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1040 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/graphics/sdl/sdl_common.c | 4 +++- sc2/src/sc2code/libs/uio/Makeinfo | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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"