1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #ifndef COMMON_GUI_OPTIONS_H
24 #define COMMON_GUI_OPTIONS_H
25 
26 #define GUIO_NONE            "\000"
27 #define GUIO_NOSUBTITLES     "\001"
28 #define GUIO_NOMUSIC         "\002"
29 // GUIO_NOSPEECH is a combination of GUIO_NOSPEECHVOLUME and GUIO_NOSUBTITLES
30 #define GUIO_NOSPEECH        "\003"
31 #define GUIO_NOSFX           "\004"
32 #define GUIO_NOMIDI          "\005"
33 #define GUIO_NOLAUNCHLOAD    "\006"
34 
35 #define GUIO_MIDIPCSPK       "\007"
36 #define GUIO_MIDICMS         "\010"
37 #define GUIO_MIDIPCJR        "\011"
38 #define GUIO_MIDIADLIB       "\012"
39 #define GUIO_MIDIC64         "\013"
40 #define GUIO_MIDIAMIGA       "\014"
41 #define GUIO_MIDIAPPLEIIGS   "\015"
42 #define GUIO_MIDITOWNS       "\016"
43 #define GUIO_MIDIPC98        "\017"
44 #define GUIO_MIDIMT32        "\020"
45 #define GUIO_MIDIGM          "\021"
46 
47 #define GUIO_NOASPECT        "\022"
48 
49 #define GUIO_RENDERHERCGREEN "\030"
50 #define GUIO_RENDERHERCAMBER "\031"
51 #define GUIO_RENDERCGA       "\032"
52 #define GUIO_RENDEREGA       "\033"
53 #define GUIO_RENDERVGA       "\034"
54 #define GUIO_RENDERAMIGA     "\035"
55 #define GUIO_RENDERFMTOWNS   "\036"
56 #define GUIO_RENDERPC9821    "\037"
57 #define GUIO_RENDERPC9801    "\040"
58 #define GUIO_RENDERAPPLE2GS  "\041"
59 #define GUIO_RENDERATARIST   "\042"
60 #define GUIO_RENDERMACINTOSH "\043"
61 
62 #define GUIO_LINKSPEECHTOSFX "\044"
63 #define GUIO_LINKMUSICTOSFX  "\045"
64 #define GUIO_NOSPEECHVOLUME  "\046"
65 
66 // Special GUIO flags for the AdvancedDetector's caching of game specific
67 // options.
68 #define GUIO_GAMEOPTIONS1    "\050"
69 #define GUIO_GAMEOPTIONS2    "\051"
70 #define GUIO_GAMEOPTIONS3    "\052"
71 #define GUIO_GAMEOPTIONS4    "\053"
72 #define GUIO_GAMEOPTIONS5    "\054"
73 #define GUIO_GAMEOPTIONS6    "\055"
74 #define GUIO_GAMEOPTIONS7    "\056"
75 #define GUIO_GAMEOPTIONS8    "\057"
76 #define GUIO_GAMEOPTIONS9    "\060"
77 #define GUIO_GAMEOPTIONS10   "\061"
78 #define GUIO_GAMEOPTIONS11   "\062"
79 #define GUIO_GAMEOPTIONS12   "\063"
80 #define GUIO_GAMEOPTIONS13   "\064"
81 #define GUIO_GAMEOPTIONS14   "\065"
82 #define GUIO_GAMEOPTIONS15   "\066"
83 
84 #define GUIO0() (GUIO_NONE)
85 #define GUIO1(a) (a)
86 #define GUIO2(a,b) (a b)
87 #define GUIO3(a,b,c) (a b c)
88 #define GUIO4(a,b,c,d) (a b c d)
89 #define GUIO5(a,b,c,d,e) (a b c d e)
90 #define GUIO6(a,b,c,d,e,f) (a b c d e f)
91 #define GUIO7(a,b,c,d,e,f,g) (a b c d e f g)
92 #define GUIO8(a,b,c,d,e,f,g,h) (a b c d e f g h)
93 #define GUIO9(a,b,c,d,e,f,g,h,i) (a b c d e f g h i)
94 
95 namespace Common {
96 
97 class String;
98 
99 bool checkGameGUIOption(const String &option, const String &str);
100 String parseGameGUIOptions(const String &str);
101 const String getGameGUIOptionsDescription(const String &options);
102 
103 /**
104  * Updates the GUI options of the current config manager
105  * domain, when they differ to the ones passed as
106  * parameter.
107  */
108 void updateGameGUIOptions(const String &options, const String &langOption);
109 
110 
111 } // End of namespace Common
112 
113 #endif
114