summaryrefslogtreecommitdiff
path: root/tools/mid2agb/main.cpp
diff options
context:
space:
mode:
authornullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com>2019-08-04 10:18:13 +0000
committernullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com>2019-08-04 10:18:13 +0000
commitba6f243c728de5d5c024aeb177026bcc59909e2e (patch)
treeaf8fdeb1c6cdf9cd8584f0d693a4049bfc408b9d /tools/mid2agb/main.cpp
parent6211b0c5ecbe4a43aa3f6e8fd96e99af29caa77a (diff)
parent250a331df9dbd312d572aaf0d629503417cfc9d4 (diff)
Forgot upstream tools tracking
Diffstat (limited to 'tools/mid2agb/main.cpp')
-rw-r--r--tools/mid2agb/main.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/mid2agb/main.cpp b/tools/mid2agb/main.cpp
index 03feabd..ea2b294 100644
--- a/tools/mid2agb/main.cpp
+++ b/tools/mid2agb/main.cpp
@@ -138,7 +138,7 @@ int main(int argc, char** argv)
if (option[0] == '-' && option[1] != '\0')
{
- const char *arg = GetArgument(argc, argv, i);
+ const char *arg;
switch (std::toupper(option[1]))
{
@@ -146,29 +146,34 @@ int main(int argc, char** argv)
g_exactGateTime = true;
break;
case 'G':
+ arg = GetArgument(argc, argv, i);
if (arg == nullptr)
PrintUsage();
g_voiceGroup = std::stoi(arg);
break;
case 'L':
+ arg = GetArgument(argc, argv, i);
if (arg == nullptr)
PrintUsage();
- g_asmLabel = std::stoi(arg);
+ g_asmLabel = arg;
break;
case 'N':
g_compressionEnabled = false;
break;
case 'P':
+ arg = GetArgument(argc, argv, i);
if (arg == nullptr)
PrintUsage();
g_priority = std::stoi(arg);
break;
case 'R':
+ arg = GetArgument(argc, argv, i);
if (arg == nullptr)
PrintUsage();
g_reverb = std::stoi(arg);
break;
case 'V':
+ arg = GetArgument(argc, argv, i);
if (arg == nullptr)
PrintUsage();
g_masterVolume = std::stoi(arg);