82 |
" --window Run in a window; do not enter fullscreen mode\n" |
" --window Run in a window; do not enter fullscreen mode\n" |
83 |
" --help -h Show this help\n" |
" --help -h Show this help\n" |
84 |
" --version Print the executable's version number\n" |
" --version Print the executable's version number\n" |
|
// " --8bpp Use 256 color mode\n" |
|
85 |
" --nograb Do not use exclusive mouse/keyboard access\n" |
" --nograb Do not use exclusive mouse/keyboard access\n" |
86 |
" --zoom Automatically create missing previews\n" |
" --zoom Automatically create missing previews\n" |
|
// " --soundset -s [enigma|oxyd|oxyd1|peroxyd|oxydmagnum|magnumgold|oxydextra]\n" |
|
|
// " Choose your preferred soundset; default is 'oxyd'\n" |
|
87 |
"\n"); |
"\n"); |
88 |
} |
} |
89 |
|
|
95 |
OPT_NOSOUND, OPT_NOMUSIC, OPT_VERSION, OPT_HELP, |
OPT_NOSOUND, OPT_NOMUSIC, OPT_VERSION, OPT_HELP, |
96 |
OPT_WINDOW, OPT_WIZARD, OPT_NOGRAB, OPT_ZOOM, OPT_LOG, |
OPT_WINDOW, OPT_WIZARD, OPT_NOGRAB, OPT_ZOOM, OPT_LOG, |
97 |
OPT_8BPP, OPT_GAME, |
OPT_8BPP, OPT_GAME, |
|
// OPT_SOUNDSET, |
|
|
// OPT_PEROXYD, OPT_OXYD1, OPT_EXTRA, OPT_MAGNUM |
|
98 |
}; |
}; |
99 |
|
|
100 |
AP() : ArgParser (app.args.begin(), app.args.end()) |
AP() : ArgParser (app.args.begin(), app.args.end()) |
101 |
{ |
{ |
102 |
nosound = nomusic = show_help = show_version = do_log = false; |
nosound = nomusic = show_help = show_version = do_log = false; |
103 |
gamename = ""; |
gamename = ""; |
|
// gametype = GAMET_ENIGMA; |
|
104 |
|
|
105 |
def (OPT_NOSOUND, 0, "nosound"); |
def (OPT_NOSOUND, 0, "nosound"); |
106 |
def (OPT_NOMUSIC, 0, "nomusic"); |
def (OPT_NOMUSIC, 0, "nomusic"); |
113 |
def (OPT_LOG, 'l', "log"); |
def (OPT_LOG, 'l', "log"); |
114 |
def (OPT_8BPP, '8', "8bpp"); |
def (OPT_8BPP, '8', "8bpp"); |
115 |
def (OPT_GAME, 'g', "game", true); |
def (OPT_GAME, 'g', "game", true); |
|
// def (OPT_PEROXYD, 0, "peroxyd"); |
|
|
// def (OPT_OXYD1, 0, "oxyd1"); |
|
|
// def (OPT_EXTRA, 0, "oxydextra"); |
|
|
// def (OPT_MAGNUM,0, "oxydmagnum"); |
|
|
// def (OPT_SOUNDSET, 's', "soundset", true); |
|
116 |
} |
} |
117 |
|
|
118 |
// ArgParser interface. |
// ArgParser interface. |
134 |
case OPT_8BPP: options::BitsPerPixel = 8; break; |
case OPT_8BPP: options::BitsPerPixel = 8; break; |
135 |
case OPT_GAME: gamename = param; break; |
case OPT_GAME: gamename = param; break; |
136 |
case OPT_LOG: do_log = true; break; |
case OPT_LOG: do_log = true; break; |
|
// case OPT_PEROXYD: gametype = GAMET_PEROXYD; break; |
|
|
// case OPT_OXYD1: gametype = GAMET_OXYD1; break; |
|
|
// case OPT_EXTRA: gametype = GAMET_OXYDEXTRA; break; |
|
|
// case OPT_MAGNUM: gametype = GAMET_OXYDMAGNUM; break; |
|
|
// case OPT_SOUNDSET: soundset = param; break; |
|
137 |
} |
} |
138 |
} |
} |
139 |
|
|
143 |
// Variables. |
// Variables. |
144 |
bool nosound, nomusic, show_help, show_version, do_log; |
bool nosound, nomusic, show_help, show_version, do_log; |
145 |
string gamename; |
string gamename; |
|
// string soundset; |
|
|
// GameType gametype; |
|
146 |
}; |
}; |
147 |
} |
} |
148 |
|
|