[Scummvm-cvs-logs] SF.net SVN: scummvm:[38748] scummvm/trunk/engines/sci/engine/scriptdebug. cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sat Feb 21 22:22:50 CET 2009
Revision: 38748
http://scummvm.svn.sourceforge.net/scummvm/?rev=38748&view=rev
Author: fingolfin
Date: 2009-02-21 21:22:50 +0000 (Sat, 21 Feb 2009)
Log Message:
-----------
SCI: Removed c_sleep console command (what was/is the idea behind that one, anyway?)
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/scriptdebug.cpp
Modified: scummvm/trunk/engines/sci/engine/scriptdebug.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/scriptdebug.cpp 2009-02-21 21:22:07 UTC (rev 38747)
+++ scummvm/trunk/engines/sci/engine/scriptdebug.cpp 2009-02-21 21:22:50 UTC (rev 38748)
@@ -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,12 +2782,12 @@
return 0;
}
-int c_sleep(EngineState *s) {
- sleep(cmd_params[0].val);
+// int c_sleep(EngineState *s) {
+// sleep(cmd_params[0].val);
+//
+// return 0;
+// }
- return 0;
-}
-
static void _print_address(void * _, reg_t addr) {
if (addr.segment)
sciprintf(" "PREG"\n", PRINT_REG(addr));
@@ -3192,8 +3165,8 @@
" 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"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list