diff options
author | Ludvig Strigeus | 2002-04-15 18:07:56 +0000 |
---|---|---|
committer | Ludvig Strigeus | 2002-04-15 18:07:56 +0000 |
commit | c3b734f79c08436ac51f0a94afb055477c8be6c5 (patch) | |
tree | 3eee214d4dd3ebeea3f92cad7ef52a533e5ebb55 /gameDetector.cpp | |
parent | 18ee3f37e6fc51f3010b191f21f16617c64cb6fe (diff) | |
download | scummvm-rg350-c3b734f79c08436ac51f0a94afb055477c8be6c5.tar.gz scummvm-rg350-c3b734f79c08436ac51f0a94afb055477c8be6c5.tar.bz2 scummvm-rg350-c3b734f79c08436ac51f0a94afb055477c8be6c5.zip |
command line option for sfx volume
svn-id: r3947
Diffstat (limited to 'gameDetector.cpp')
-rw-r--r-- | gameDetector.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gameDetector.cpp b/gameDetector.cpp index e7a524e189..273fd112f3 100644 --- a/gameDetector.cpp +++ b/gameDetector.cpp @@ -41,6 +41,7 @@ static const char USAGE_STRING[] = "\tt<num> - set music tempo. Suggested: 1F0000\n" "\tp<path> - look for game in <path>\n" "\tm<num> - set music volume to <num> (0-100)\n" + "\ts<num> - set sfx volume to <num> (0-255)\n" "\te<mode> - set music engine. see readme.txt for details\n" "\tr - emulate roland mt32 instruments\n" "\tf - fullscreen mode\n" @@ -108,6 +109,12 @@ void GameDetector::parseCommandLine(int argc, char **argv) _music_volume = atoi(s + 1); goto NextArg; } + case 's':{ + if (*(s + 1) == '\0') + goto ShowHelpAndExit; + _sfx_volume = atoi(s + 1); + goto NextArg; + } case 'r':{ _mt32emulate = true; break; @@ -202,9 +209,6 @@ bool GameDetector::parseMusicDriver(const char *s) { for(i=0; i!=ARRAYSIZE(music_drivers); i++,md++) { if (!scumm_stricmp(md->name, s)) { - /* FIXME: when adlib driver is in use, propagate that to - * the IMuse class, and let it create an IMuseAdlib driver - * instead of IMuseGM driver */ if (md->id == -1) { _use_adlib = true; } @@ -335,9 +339,10 @@ int GameDetector::detectMain(int argc, char **argv) _noSubtitles = 0; // use by default - should this depend on soundtrack? _gfx_mode = GFX_DOUBLESIZE; - _gfx_driver = GD_AUTO; + _sfx_volume = 100; + #ifdef USE_NULL_DRIVER _gfx_driver = GD_NULL; #endif @@ -346,6 +351,8 @@ int GameDetector::detectMain(int argc, char **argv) _gameTempo = 0; _soundCardType = 3; + + _midi_driver = MD_AUTO; parseCommandLine(argc, argv); |