RECORDER: Added stub for delayMillis() processing

This commit is contained in:
Eugene Sandulenko 2011-08-06 11:25:51 +01:00
parent 1e45c32558
commit baf65bc872
3 changed files with 9 additions and 1 deletions

View file

@ -472,6 +472,7 @@ uint32 OSystem_SDL::getMillis() {
} }
void OSystem_SDL::delayMillis(uint msecs) { void OSystem_SDL::delayMillis(uint msecs) {
if (!g_eventRec.processDelayMillis(msecs))
SDL_Delay(msecs); SDL_Delay(msecs);
} }

View file

@ -304,6 +304,10 @@ void EventRecorder::processMillis(uint32 &millis) {
g_system->unlockMutex(_timeMutex); g_system->unlockMutex(_timeMutex);
} }
bool EventRecorder::processDelayMillis(uint32 &msecs) {
return false;
}
bool EventRecorder::notifyEvent(const Event &ev) { bool EventRecorder::notifyEvent(const Event &ev) {
if (_recordMode != kRecorderRecord) if (_recordMode != kRecorderRecord)
return false; return false;

View file

@ -56,6 +56,9 @@ public:
/** TODO: Add documentation, this is only used by the backend */ /** TODO: Add documentation, this is only used by the backend */
void processMillis(uint32 &millis); void processMillis(uint32 &millis);
/** TODO: Add documentation, this is only used by the backend */
bool processDelayMillis(uint32 &msecs);
private: private:
bool notifyEvent(const Event &ev); bool notifyEvent(const Event &ev);
bool pollEvent(Event &ev); bool pollEvent(Event &ev);