From 798c6bf34ddfc64f23bac3bf3f26539aaab72f2d Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sun, 2 Jul 2017 23:38:19 -0500 Subject: COMMON: Add yet another GUIO option flag SCI engine has very many game options. --- common/gui_options.cpp | 3 +++ common/gui_options.h | 1 + 2 files changed, 4 insertions(+) diff --git a/common/gui_options.cpp b/common/gui_options.cpp index 120edd0b91..500830a303 100644 --- a/common/gui_options.cpp +++ b/common/gui_options.cpp @@ -80,6 +80,9 @@ const struct GameOpt { { GUIO_GAMEOPTIONS7, "gameOption7" }, { GUIO_GAMEOPTIONS8, "gameOption8" }, { GUIO_GAMEOPTIONS9, "gameOption9" }, + // Option strings must not contain substrings of any other options, so + // "gameOption10" would be invalid here because it contains "gameOption1" + { GUIO_GAMEOPTIONS10, "gameOptionA" }, { GUIO_NONE, 0 } }; diff --git a/common/gui_options.h b/common/gui_options.h index d51a29ad75..6c1aa2fdcd 100644 --- a/common/gui_options.h +++ b/common/gui_options.h @@ -74,6 +74,7 @@ #define GUIO_GAMEOPTIONS7 "\056" #define GUIO_GAMEOPTIONS8 "\057" #define GUIO_GAMEOPTIONS9 "\060" +#define GUIO_GAMEOPTIONS10 "\061" #define GUIO0() (GUIO_NONE) #define GUIO1(a) (a) -- cgit v1.2.3