aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorColin Snover2017-09-07 00:35:25 -0500
committerColin Snover2017-09-08 16:03:24 -0500
commitf11b0a4ff53db917dd0d93969540952175923528 (patch)
tree7cae7cf9bb091898eb14f447dc2b15e9e1bebcb0 /common
parent6571111efca8ade4e958b31318ebb5026d30c1f5 (diff)
downloadscummvm-rg350-f11b0a4ff53db917dd0d93969540952175923528.tar.gz
scummvm-rg350-f11b0a4ff53db917dd0d93969540952175923528.tar.bz2
scummvm-rg350-f11b0a4ff53db917dd0d93969540952175923528.zip
SCI32: Toggle Phant2 content censoring from game options
To enable the optional content censoring mode, Phant2 looks for a RESDUK.PAT file, which is normally placed by the game's installer if the user chose to enable censorship. If the file exists, the game reads an unlock password out of the file and asks the user to enter the password when starting a new game to create an uncensored game, or to click a "less intense" button to start the game with censoring. The censorship state of the game is then persisted in the save game file, and installations with the RESDUK.PAT file need to enter the password again in order to restore any of the uncensored saves. Since we do not have an installer that can enable this feature, add a game option toggle to enable/disable censoring (for the releases that have the optional censorship mode) instead so the censored content feature is available for anyone that wants to use it. This flag is restored from ScummVM whenever a save game is loaded, so it can be toggled on or off at any point without needing a separate save game, unlike in the original interpreter.
Diffstat (limited to 'common')
-rw-r--r--common/gui_options.cpp1
-rw-r--r--common/gui_options.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/common/gui_options.cpp b/common/gui_options.cpp
index 500830a303..18e02c1077 100644
--- a/common/gui_options.cpp
+++ b/common/gui_options.cpp
@@ -83,6 +83,7 @@ const struct GameOpt {
// Option strings must not contain substrings of any other options, so
// "gameOption10" would be invalid here because it contains "gameOption1"
{ GUIO_GAMEOPTIONS10, "gameOptionA" },
+ { GUIO_GAMEOPTIONS11, "gameOptionB" },
{ GUIO_NONE, 0 }
};
diff --git a/common/gui_options.h b/common/gui_options.h
index 6c1aa2fdcd..0813ff1216 100644
--- a/common/gui_options.h
+++ b/common/gui_options.h
@@ -75,6 +75,7 @@
#define GUIO_GAMEOPTIONS8 "\057"
#define GUIO_GAMEOPTIONS9 "\060"
#define GUIO_GAMEOPTIONS10 "\061"
+#define GUIO_GAMEOPTIONS11 "\062"
#define GUIO0() (GUIO_NONE)
#define GUIO1(a) (a)
@@ -85,6 +86,7 @@
#define GUIO6(a,b,c,d,e,f) (a b c d e f)
#define GUIO7(a,b,c,d,e,f,g) (a b c d e f g)
#define GUIO8(a,b,c,d,e,f,g,h) (a b c d e f g h)
+#define GUIO9(a,b,c,d,e,f,g,h,i) (a b c d e f g h i)
namespace Common {