mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 03:24:50 +00:00
COMPOSER: Fix for issue when save_slot is in config.
This commit is contained in:
parent
5649ce55fc
commit
74c75e36ca
@ -121,6 +121,8 @@ Common::Error ComposerEngine::run() {
|
||||
warning("FPS in book.ini is zero. Defaulting to 8...");
|
||||
uint32 lastDrawTime = 0;
|
||||
_lastSaveTime = _system->getMillis();
|
||||
|
||||
bool loadFromLauncher = ConfMan.hasKey("save_slot");
|
||||
|
||||
while (!shouldQuit()) {
|
||||
for (uint i = 0; i < _pendingPageChanges.size(); i++) {
|
||||
@ -170,9 +172,9 @@ Common::Error ComposerEngine::run() {
|
||||
} else if (_needsUpdate) {
|
||||
redraw();
|
||||
}
|
||||
if (ConfMan.hasKey("save_slot")) {
|
||||
if (loadFromLauncher) {
|
||||
loadGameState(ConfMan.getInt("save_slot"));
|
||||
ConfMan.removeKey("save_slot", Common::ConfigManager::kTransientDomain);
|
||||
loadFromLauncher = false;
|
||||
}
|
||||
if (shouldPerformAutoSave(_lastSaveTime))
|
||||
saveGameState(0, "Autosave");
|
||||
|
Loading…
x
Reference in New Issue
Block a user