[Scummvm-git-logs] scummvm master -> 4591a74b82bd88b5fc4d6b6458896271c60de256
lephilousophe
noreply at scummvm.org
Sat Mar 2 12:00:08 UTC 2024
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:
4591a74b82 GUI: Don't display save and extra path when it's the default one
Commit: 4591a74b82bd88b5fc4d6b6458896271c60de256
https://github.com/scummvm/scummvm/commit/4591a74b82bd88b5fc4d6b6458896271c60de256
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2024-03-02T12:59:03+01:00
Commit Message:
GUI: Don't display save and extra path when it's the default one
Changed paths:
gui/editgamedialog.cpp
diff --git a/gui/editgamedialog.cpp b/gui/editgamedialog.cpp
index 237d93af5d3..d8fc3cf9bdc 100644
--- a/gui/editgamedialog.cpp
+++ b/gui/editgamedialog.cpp
@@ -114,7 +114,13 @@ EditGameDialog::EditGameDialog(const Common::String &domain)
// GAME: Path to game data (r/o), extra data (r/o), and save data (r/w)
Common::Path gamePath(ConfMan.getPath("path", _domain));
Common::Path extraPath(ConfMan.getPath("extrapath", _domain));
+ if (!ConfMan.hasKey("extrapath", _domain)) {
+ extraPath.clear();
+ }
Common::Path savePath(ConfMan.getPath("savepath", _domain));
+ if (!ConfMan.hasKey("savepath", _domain)) {
+ savePath.clear();
+ }
// GAME: Determine the description string
Common::String description(ConfMan.get("description", domain));
More information about the Scummvm-git-logs
mailing list