diff options
author | aszlig <aszlig@nix.build> | 2019-06-11 07:21:03 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2019-06-11 07:21:03 +0200 |
commit | 4c919e68d71669a09b45d67a18b8ebb5baa21d45 (patch) | |
tree | b6668240a1a7c6da55bef4ebb04f09cf66dcf214 /pkgs/games/gog/the-longest-journey/predefined-config.patch | |
parent | 6ae9056a5a82dd16b745188a7ee6122ed27239f0 (diff) |
games/gog: Add The Longest Journey
This is basically a wrapper around ResidualVM, which I also patched so that we can inject a basic config file from the Nix store that contains the basic game information. The ResidualVM build is pretty minimal in that we only use those dependencies that we actually need for the game. Signed-off-by: aszlig <aszlig@nix.build> Cc: @Profpatsch
Diffstat (limited to 'pkgs/games/gog/the-longest-journey/predefined-config.patch')
-rw-r--r-- | pkgs/games/gog/the-longest-journey/predefined-config.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/games/gog/the-longest-journey/predefined-config.patch b/pkgs/games/gog/the-longest-journey/predefined-config.patch new file mode 100644 index 00000000..504e3867 --- /dev/null +++ b/pkgs/games/gog/the-longest-journey/predefined-config.patch @@ -0,0 +1,29 @@ +diff --git a/base/commandLine.cpp b/base/commandLine.cpp +index ab741917..8723fc0d 100644 +--- a/base/commandLine.cpp ++++ b/base/commandLine.cpp +@@ -425,6 +425,9 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha + DO_LONG_COMMAND("list-saves") + END_COMMAND + ++ DO_LONG_OPTION("predefined-config") ++ END_OPTION ++ + DO_OPTION('c', "config") + END_OPTION + +diff --git a/base/main.cpp b/base/main.cpp +index 2fbfc679..d74b15e5 100644 +--- a/base/main.cpp ++++ b/base/main.cpp +@@ -394,6 +394,10 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) { + Common::StringMap settings; + command = Base::parseCommandLine(settings, argc, argv); + ++ // Load config file with predefined options ++ if (settings.contains("predefined-config")) ++ ConfMan.loadConfigFile(settings["predefined-config"]); ++ + // Load the config file (possibly overridden via command line): + if (settings.contains("config")) { + ConfMan.loadConfigFile(settings["config"]); |