diff options
author | Max Horn | 2009-02-21 21:22:50 +0000 |
---|---|---|
committer | Max Horn | 2009-02-21 21:22:50 +0000 |
commit | dbafa5c45674dfc80e57448d8e75e17a65ac4509 (patch) | |
tree | 7b9dd26130d461541988b048acd756c2b0c32f35 /engines/sci/engine | |
parent | 6288e0456fb2c83269d16b19cf245cb35ec1e5a7 (diff) | |
download | scummvm-rg350-dbafa5c45674dfc80e57448d8e75e17a65ac4509.tar.gz scummvm-rg350-dbafa5c45674dfc80e57448d8e75e17a65ac4509.tar.bz2 scummvm-rg350-dbafa5c45674dfc80e57448d8e75e17a65ac4509.zip |
SCI: Removed c_sleep console command (what was/is the idea behind that one, anyway?)
svn-id: r38748
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 41 |
1 files changed, 7 insertions, 34 deletions
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 <windows.h> -# include <mmsystem.h> -# 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 <unistd.h> -// Assume this is a sufficient precondition -# include <signal.h> -#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 <song> <offset>\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" |