diff options
author | Eugene Sandulenko | 2009-05-21 22:23:04 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-05-21 22:23:04 +0000 |
commit | b8749923090d60e2e73a602a6f0d62ea1361bde6 (patch) | |
tree | 99064e02e14313aa863749708de1d04f3f428025 | |
parent | 36fe37443d53c64d0172791a5bc6226c7fe199c0 (diff) | |
download | scummvm-rg350-b8749923090d60e2e73a602a6f0d62ea1361bde6.tar.gz scummvm-rg350-b8749923090d60e2e73a602a6f0d62ea1361bde6.tar.bz2 scummvm-rg350-b8749923090d60e2e73a602a6f0d62ea1361bde6.zip |
Attempt to bring event recoredr to life. Still crashes on exit, though.
svn-id: r40775
-rw-r--r-- | backends/events/default/default-events.cpp | 2 | ||||
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/backends/events/default/default-events.cpp b/backends/events/default/default-events.cpp index be0430b27f..9c33e187a4 100644 --- a/backends/events/default/default-events.cpp +++ b/backends/events/default/default-events.cpp @@ -237,6 +237,8 @@ DefaultEventManager::~DefaultEventManager() { _playbackFile = g_system->getSavefileManager()->openForLoading(_recordTempFileName.c_str()); + assert(_playbackFile); + _recordFile = g_system->getSavefileManager()->openForSaving(_recordFileName.c_str()); _recordFile->writeUint32LE(RECORD_SIGNATURE); _recordFile->writeUint32LE(RECORD_VERSION); diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index d4f634e62f..c11c97c041 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -468,12 +468,14 @@ void OSystem_SDL::quit() { free(_cursorPalette); free(_mouseData); - delete _savefile; delete _timer; SDL_Quit(); + // Even Manager requires save manager for storing + // recorded events delete getEventManager(); + delete _savefile; exit(0); } |