diff options
author | Diegoisawesome <Diegoisawesome@users.noreply.github.com> | 2018-09-29 20:39:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-29 20:39:42 -0500 |
commit | 250a4513775928955e4d0b4e5e143d510dd23551 (patch) | |
tree | 80c2e6f738866c735d7b11c39bacb5b2c04071d1 /tools/mid2agb/main.cpp | |
parent | da690aff9d6313ccf19ce2b1d0462b5b4505509e (diff) | |
parent | 64258a298ea98607bef1649fb647568682b52dc6 (diff) |
Merge pull request #342 from Kermalis/master
Volume stuff
Diffstat (limited to 'tools/mid2agb/main.cpp')
-rw-r--r-- | tools/mid2agb/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/mid2agb/main.cpp b/tools/mid2agb/main.cpp index ece8e2556..ea2b294ac 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,11 +146,13 @@ 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 = arg; @@ -159,16 +161,19 @@ int main(int argc, char** argv) 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); |