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,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 {

View file

@ -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;

View file

@ -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);