diff options
author | Julien Templier | 2010-11-19 10:55:56 +0000 |
---|---|---|
committer | Julien Templier | 2010-11-19 10:55:56 +0000 |
commit | 9e5b554dc357850b7ac5997fbc1a2df58fcf02ab (patch) | |
tree | b9f1b9453d1beadec5bdac855d88838690d8e3e7 /engines/lastexpress/game/savegame.cpp | |
parent | 2687c987ebf0d1810d5e184d1c10d4164188cd37 (diff) | |
download | scummvm-rg350-9e5b554dc357850b7ac5997fbc1a2df58fcf02ab.tar.gz scummvm-rg350-9e5b554dc357850b7ac5997fbc1a2df58fcf02ab.tar.bz2 scummvm-rg350-9e5b554dc357850b7ac5997fbc1a2df58fcf02ab.zip |
LASTEXPRESS: Poll events when loading savegames to prevent freezing the application
svn-id: r54368
Diffstat (limited to 'engines/lastexpress/game/savegame.cpp')
-rw-r--r-- | engines/lastexpress/game/savegame.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/lastexpress/game/savegame.cpp b/engines/lastexpress/game/savegame.cpp index f5b512f5ee..2d88c2dca4 100644 --- a/engines/lastexpress/game/savegame.cpp +++ b/engines/lastexpress/game/savegame.cpp @@ -156,6 +156,8 @@ void SaveLoad::loadStream(GameId id) { // Load all savegame data uint8* buf = new uint8[8192]; while (!save->eos() && !save->err()) { + _engine->pollEvents(); + uint32 count = save->read(buf, sizeof(buf)); if (count) { uint32 w = _savegame->write(buf, count); |