summaryrefslogtreecommitdiff
path: root/tools/mid2agb/main.cpp
diff options
context:
space:
mode:
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);