[Scummvm-git-logs] scummvm master -> f0d095a1a95a14bfc2947e5dcc669de402e29858
elasota
noreply at scummvm.org
Sun Jun 11 23:12:26 UTC 2023
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:
f0d095a1a9 VCRUISE: Fix settings not saving
Commit: f0d095a1a95a14bfc2947e5dcc669de402e29858
https://github.com/scummvm/scummvm/commit/f0d095a1a95a14bfc2947e5dcc669de402e29858
Author: elasota (ejlasota at gmail.com)
Date: 2023-06-11T19:12:09-04:00
Commit Message:
VCRUISE: Fix settings not saving
Changed paths:
engines/vcruise/runtime.cpp
engines/vcruise/vcruise.cpp
diff --git a/engines/vcruise/runtime.cpp b/engines/vcruise/runtime.cpp
index 0932d7d3368..14d81c26a3a 100644
--- a/engines/vcruise/runtime.cpp
+++ b/engines/vcruise/runtime.cpp
@@ -1189,8 +1189,6 @@ bool Runtime::runFrame() {
moreActions = bootGame(true);
break;
case kGameStateQuit:
- // Flush any settings changes made in-game
- ConfMan.flushToDisk();
return false;
case kGameStateIdle:
moreActions = runIdle();
diff --git a/engines/vcruise/vcruise.cpp b/engines/vcruise/vcruise.cpp
index 741fcba655e..0ae81043f39 100644
--- a/engines/vcruise/vcruise.cpp
+++ b/engines/vcruise/vcruise.cpp
@@ -222,6 +222,9 @@ Common::Error VCruiseEngine::run() {
if (_gameDescription->desc.flags & VCRUISE_GF_GENTEE_PACKAGE)
SearchMan.remove("VCruiseInstallerPackage");
+ // Flush any settings changes made in-game
+ ConfMan.flushToDisk();
+
return Common::kNoError;
}
More information about the Scummvm-git-logs
mailing list