diff options
| author | Nicholas Estelami <NEstelami@users.noreply.github.com> | 2021-04-22 16:37:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-22 16:37:53 -0400 |
| commit | ee8bdea252db4c764f4a2567c32754118fdce10b (patch) | |
| tree | b63869f76ba81fc0b51198333ac04a493d3d0bdc /ZAPD/Main.cpp | |
| parent | 5a1f6fb716a5a756bba8e6264b975e57952e1786 (diff) | |
Moved BG Screen Width and Height into Config File (#121)
* Moved BG Screen Width and Height into config file
* Removed unused/redundant command line arguments.
Co-authored-by: Jack Walker <7463599+Jack-Walker@users.noreply.github.com>
Diffstat (limited to 'ZAPD/Main.cpp')
| -rw-r--r-- | ZAPD/Main.cpp | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/ZAPD/Main.cpp b/ZAPD/Main.cpp index 4a58909..cf9efe3 100644 --- a/ZAPD/Main.cpp +++ b/ZAPD/Main.cpp @@ -159,23 +159,23 @@ int NewMain(int argc, char* argv[]) Globals::Instance->includeFilePrefix = string(argv[i + 1]) == "1"; i++; } - else if (arg == "-tm") // Test Mode + else if (arg == "-tm") // Test Mode (enables certain experimental features) { Globals::Instance->testMode = string(argv[i + 1]) == "1"; i++; } - else if (arg == "-ulzdl") // Use Legacy ZDisplay List (Linux builds only) + else if (arg == "-ulzdl") // Use Legacy ZDisplay List { Globals::Instance->useLegacyZDList = string(argv[i + 1]) == "1"; i++; } - else if (arg == "-profile") // Profile + else if (arg == "-profile") // Enable profiling { Globals::Instance->profile = string(argv[i + 1]) == "1"; i++; } else if (arg == - "-uer") // Split resources into their individual components (enabled by default) + "-uer") // Split resources into their individual components (enabled by default) TODO: We may wish to make this a part of the config file... { Globals::Instance->useExternalResources = string(argv[i + 1]) == "1"; i++; @@ -185,29 +185,16 @@ int NewMain(int argc, char* argv[]) Globals::Instance->texType = ZTexture::GetTextureTypeFromString(argv[i + 1]); i++; } - else if (arg == "-cfg") // Set cfg path + else if (arg == "-cfg") // Set cfg path (for overlays) TODO: Change the name of this to something else so it doesn't get confused with XML config files. { Globals::Instance->cfgPath = argv[i + 1]; i++; } - else if (arg == "-sm") // Set symbol map path - { - Globals::Instance->GenSymbolMap(argv[i + 1]); - i++; - } else if (arg == "-rconf") // Read Config File { Globals::Instance->ReadConfigFile(argv[i + 1]); i++; } - else if (arg == "-al") // Set actor list - { - i++; - } - else if (arg == "-ol") // Set object list - { - i++; - } else if (arg == "-eh") // Enable Error Handler { #if !defined(_MSC_VER) && !defined(__CYGWIN__) |
