Fix mid2agb argument parsing
This commit is contained in:
parent
1af5e63b41
commit
dc53e35a60
1 changed files with 6 additions and 1 deletions
|
@ -138,7 +138,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
if (option[0] == '-' && option[1] != '\0')
|
if (option[0] == '-' && option[1] != '\0')
|
||||||
{
|
{
|
||||||
const char *arg = GetArgument(argc, argv, i);
|
const char *arg;
|
||||||
|
|
||||||
switch (std::toupper(option[1]))
|
switch (std::toupper(option[1]))
|
||||||
{
|
{
|
||||||
|
@ -146,11 +146,13 @@ int main(int argc, char** argv)
|
||||||
g_exactGateTime = true;
|
g_exactGateTime = true;
|
||||||
break;
|
break;
|
||||||
case 'G':
|
case 'G':
|
||||||
|
arg = GetArgument(argc, argv, i);
|
||||||
if (arg == nullptr)
|
if (arg == nullptr)
|
||||||
PrintUsage();
|
PrintUsage();
|
||||||
g_voiceGroup = std::stoi(arg);
|
g_voiceGroup = std::stoi(arg);
|
||||||
break;
|
break;
|
||||||
case 'L':
|
case 'L':
|
||||||
|
arg = GetArgument(argc, argv, i);
|
||||||
if (arg == nullptr)
|
if (arg == nullptr)
|
||||||
PrintUsage();
|
PrintUsage();
|
||||||
g_asmLabel = arg;
|
g_asmLabel = arg;
|
||||||
|
@ -159,16 +161,19 @@ int main(int argc, char** argv)
|
||||||
g_compressionEnabled = false;
|
g_compressionEnabled = false;
|
||||||
break;
|
break;
|
||||||
case 'P':
|
case 'P':
|
||||||
|
arg = GetArgument(argc, argv, i);
|
||||||
if (arg == nullptr)
|
if (arg == nullptr)
|
||||||
PrintUsage();
|
PrintUsage();
|
||||||
g_priority = std::stoi(arg);
|
g_priority = std::stoi(arg);
|
||||||
break;
|
break;
|
||||||
case 'R':
|
case 'R':
|
||||||
|
arg = GetArgument(argc, argv, i);
|
||||||
if (arg == nullptr)
|
if (arg == nullptr)
|
||||||
PrintUsage();
|
PrintUsage();
|
||||||
g_reverb = std::stoi(arg);
|
g_reverb = std::stoi(arg);
|
||||||
break;
|
break;
|
||||||
case 'V':
|
case 'V':
|
||||||
|
arg = GetArgument(argc, argv, i);
|
||||||
if (arg == nullptr)
|
if (arg == nullptr)
|
||||||
PrintUsage();
|
PrintUsage();
|
||||||
g_masterVolume = std::stoi(arg);
|
g_masterVolume = std::stoi(arg);
|
||||||
|
|
Loading…
Reference in a new issue