From dbafa5c45674dfc80e57448d8e75e17a65ac4509 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 21 Feb 2009 21:22:50 +0000 Subject: SCI: Removed c_sleep console command (what was/is the idea behind that one, anyway?) svn-id: r38748 --- engines/sci/engine/scriptdebug.cpp | 41 +++++++------------------------------- 1 file changed, 7 insertions(+), 34 deletions(-) (limited to 'engines/sci/engine') diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index 27a5b98229..717042f983 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -25,27 +25,6 @@ // Script debugger functionality. Absolutely not threadsafe. -#ifdef WIN32 -# include -# include -# ifdef sleep -# undef sleep -# endif - -# define sleep(x) \ - do { \ - if (x == 0) { \ - Sleep(0); \ - } else { \ - if (timeBeginPeriod(1) != TIMERR_NOERROR) \ - fprintf(stderr, "timeBeginPeriod(1) failed\n"); \ - Sleep(x); \ - if (timeEndPeriod(1) != TIMERR_NOERROR) \ - fprintf(stderr, "timeEndPeriod(1) failed\n"); \ - } \ - } while (0); -#endif - #include "sci/engine/gc.h" #include "sci/include/sciresource.h" #include "sci/include/engine.h" @@ -60,12 +39,6 @@ #include "common/util.h" #include "common/savefile.h" -#ifdef HAVE_UNISTD_H -# include -// Assume this is a sufficient precondition -# include -#endif - namespace Sci { extern int debug_sleeptime_factor; @@ -2809,11 +2782,11 @@ int c_sci_version(EngineState *s) { return 0; } -int c_sleep(EngineState *s) { - sleep(cmd_params[0].val); - - return 0; -} +// int c_sleep(EngineState *s) { +// sleep(cmd_params[0].val); +// +// return 0; +// } static void _print_address(void * _, reg_t addr) { if (addr.segment) @@ -3192,8 +3165,8 @@ void script_debug(EngineState *s, reg_t *pc, stack_ptr_t *sp, stack_ptr_t *pp, r " sfx-01-track \n\n" "SEE ALSO\n\n" " sfx-01-header.1\n\n"); - con_hook_command(c_sleep, "sleep", "i", "Suspends everything for the\n" - " specified number of seconds"); +// con_hook_command(c_sleep, "sleep", "i", "Suspends everything for the\n" +// " specified number of seconds"); con_hook_command(c_gc_show_reachable, "gc-list-reachable", "!a", "Prints all addresses directly reachable from\n" " the memory object specified as parameter.\n\n" -- cgit v1.2.3