From 82ab3056fa52f78309ae3271114dbec28ceb9684 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 29 Feb 2012 16:48:25 +0100 Subject: ENGINES: Implement per-game options caching in AdvancedDetector via GUIO flags. --- common/gui_options.cpp | 8 ++++++++ common/gui_options.h | 10 ++++++++++ 2 files changed, 18 insertions(+) (limited to 'common') diff --git a/common/gui_options.cpp b/common/gui_options.cpp index 32a7cc9c41..59fbfb38d1 100644 --- a/common/gui_options.cpp +++ b/common/gui_options.cpp @@ -64,6 +64,14 @@ const struct GameOpt { { GUIO_RENDERPC9821, "pc9821" }, { GUIO_RENDERPC9801, "pc9801" }, + { GUIO_GAMEOPTIONS1, "gameOption1" }, + { GUIO_GAMEOPTIONS2, "gameOption2" }, + { GUIO_GAMEOPTIONS3, "gameOption3" }, + { GUIO_GAMEOPTIONS4, "gameOption4" }, + { GUIO_GAMEOPTIONS5, "gameOption5" }, + { GUIO_GAMEOPTIONS6, "gameOption6" }, + { GUIO_GAMEOPTIONS7, "gameOption7" }, + { GUIO_NONE, 0 } }; diff --git a/common/gui_options.h b/common/gui_options.h index 33ecccad63..1ea2b777d0 100644 --- a/common/gui_options.h +++ b/common/gui_options.h @@ -56,6 +56,16 @@ #define GUIO_RENDERPC9821 "\037" #define GUIO_RENDERPC9801 "\040" +// Special GUIO flags for the AdvancedDetector's caching of game specific +// options. +#define GUIO_GAMEOPTIONS1 "\041" +#define GUIO_GAMEOPTIONS2 "\042" +#define GUIO_GAMEOPTIONS3 "\043" +#define GUIO_GAMEOPTIONS4 "\044" +#define GUIO_GAMEOPTIONS5 "\045" +#define GUIO_GAMEOPTIONS6 "\046" +#define GUIO_GAMEOPTIONS7 "\047" + #define GUIO0() (GUIO_NONE) #define GUIO1(a) (a) #define GUIO2(a,b) (a b) -- cgit v1.2.3