diff options
author | Eugene Sandulenko | 2011-08-06 11:25:51 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2011-08-06 11:31:12 +0100 |
commit | baf65bc87227b353cd2aac4cb661b8b9fb0aa0cc (patch) | |
tree | 77f89e97bba5ab0598a61ee7cb2a501fe29cb085 | |
parent | 1e45c32558a75f285fbc568df0107d4dce6d6efa (diff) | |
download | scummvm-rg350-baf65bc87227b353cd2aac4cb661b8b9fb0aa0cc.tar.gz scummvm-rg350-baf65bc87227b353cd2aac4cb661b8b9fb0aa0cc.tar.bz2 scummvm-rg350-baf65bc87227b353cd2aac4cb661b8b9fb0aa0cc.zip |
RECORDER: Added stub for delayMillis() processing
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 3 | ||||
-rw-r--r-- | common/EventRecorder.cpp | 4 | ||||
-rw-r--r-- | common/EventRecorder.h | 3 |
3 files changed, 9 insertions, 1 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index d05cca4d1f..e72b95bdc1 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -472,7 +472,8 @@ uint32 OSystem_SDL::getMillis() { } void OSystem_SDL::delayMillis(uint msecs) { - SDL_Delay(msecs); + if (!g_eventRec.processDelayMillis(msecs)) + SDL_Delay(msecs); } void OSystem_SDL::getTimeAndDate(TimeDate &td) const { diff --git a/common/EventRecorder.cpp b/common/EventRecorder.cpp index 4441070050..a43455af93 100644 --- a/common/EventRecorder.cpp +++ b/common/EventRecorder.cpp @@ -304,6 +304,10 @@ void EventRecorder::processMillis(uint32 &millis) { g_system->unlockMutex(_timeMutex); } +bool EventRecorder::processDelayMillis(uint32 &msecs) { + return false; +} + bool EventRecorder::notifyEvent(const Event &ev) { if (_recordMode != kRecorderRecord) return false; diff --git a/common/EventRecorder.h b/common/EventRecorder.h index 8377d9e8bd..bf8039e5a7 100644 --- a/common/EventRecorder.h +++ b/common/EventRecorder.h @@ -56,6 +56,9 @@ public: /** TODO: Add documentation, this is only used by the backend */ void processMillis(uint32 &millis); + /** TODO: Add documentation, this is only used by the backend */ + bool processDelayMillis(uint32 &msecs); + private: bool notifyEvent(const Event &ev); bool pollEvent(Event &ev); |