[Scummvm-git-logs] scummvm master -> 2b39d80d12c2ea47a80736001eb58a9f6fa033c3
aquadran
aquadran at gmail.com
Thu Nov 12 09:47:23 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
2b39d80d12 GRIM: Do not store "last_set" if it was not stored before
Commit: 2b39d80d12c2ea47a80736001eb58a9f6fa033c3
https://github.com/scummvm/scummvm/commit/2b39d80d12c2ea47a80736001eb58a9f6fa033c3
Author: PaweÅ KoÅodziejski (aquadran at users.sourceforge.net)
Date: 2020-11-12T10:47:15+01:00
Commit Message:
GRIM: Do not store "last_set" if it was not stored before
Changed paths:
engines/grim/registry.cpp
diff --git a/engines/grim/registry.cpp b/engines/grim/registry.cpp
index 804e809235..614b736812 100644
--- a/engines/grim/registry.cpp
+++ b/engines/grim/registry.cpp
@@ -290,7 +290,9 @@ void Registry::save() {
ConfMan.set("spew_on_error", _spewOnError.getString());
ConfMan.set("path", _dataPath.getString());
ConfMan.set("savepath", _savePath.getString());
- ConfMan.set("last_set", _lastSet.getString());
+ if (ConfMan.hasKey("last_set")) {
+ ConfMan.set("last_set", _lastSet.getString());
+ }
ConfMan.setBool("game_devel_mode", _develMode.getBool());
ConfMan.setInt("music_volume", convertVolumeToMixer(_musicVolume.getInt()));
ConfMan.setInt("sfx_volume", convertVolumeToMixer(_sfxVolume.getInt()));
More information about the Scummvm-git-logs
mailing list