Cleanup of options processing: parse all options at the very first thing we do, so do not have to screw with optind; fixes failures when running with no args on mingw
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3234 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ int optMeleeScale;
|
||||
const char **optAddons;
|
||||
|
||||
BOOLEAN opt3doMusic;
|
||||
BOOLEAN optPrecursorsMusic;
|
||||
BOOLEAN optRemixMusic;
|
||||
BOOLEAN optSubtitles;
|
||||
BOOLEAN optStereoSFX;
|
||||
BOOLEAN optKeepAspectRatio;
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ extern int optSmoothScroll;
|
||||
extern int optMeleeScale;
|
||||
|
||||
extern BOOLEAN opt3doMusic;
|
||||
extern BOOLEAN optPrecursorsMusic;
|
||||
extern BOOLEAN optRemixMusic;
|
||||
extern BOOLEAN optSubtitles;
|
||||
extern BOOLEAN optStereoSFX;
|
||||
extern BOOLEAN optKeepAspectRatio;
|
||||
|
||||
+616
-545
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -125,7 +125,7 @@ LoadKernel (int argc, char *argv[])
|
||||
if (!loadAddon ("3dovoice"))
|
||||
speechVolumeScale = 0.0f; // XXX: need better no-speech indicator
|
||||
|
||||
if (optPrecursorsMusic)
|
||||
if (optRemixMusic)
|
||||
{
|
||||
loadAddon ("remix");
|
||||
}
|
||||
|
||||
@@ -1092,7 +1092,7 @@ GetGlobalOptions (GLOBALOPTS *opts)
|
||||
opts->stereo = optStereoSFX ? OPTVAL_ENABLED : OPTVAL_DISABLED;
|
||||
/* These values are read in, but won't change during a run. */
|
||||
opts->music3do = opt3doMusic ? OPTVAL_ENABLED : OPTVAL_DISABLED;
|
||||
opts->musicremix = optPrecursorsMusic ? OPTVAL_ENABLED : OPTVAL_DISABLED;
|
||||
opts->musicremix = optRemixMusic ? OPTVAL_ENABLED : OPTVAL_DISABLED;
|
||||
switch (snddriver) {
|
||||
case audio_DRIVER_OPENAL:
|
||||
opts->adriver = OPTVAL_OPENAL;
|
||||
|
||||
Reference in New Issue
Block a user