X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FRuntime.cpp;h=e5f74b459ec14d38a7b589b81623d470056d1c8f;hb=a1f911f8257f614f874c201fede5d5206f5b7e80;hp=8ddab262e483e34b5f24f01fab08d13b5f9702dd;hpb=b7d09e1e35ef90282c97509e0020b20db3c7ea9f;p=blank.git diff --git a/src/app/Runtime.cpp b/src/app/Runtime.cpp index 8ddab26..e5f74b4 100644 --- a/src/app/Runtime.cpp +++ b/src/app/Runtime.cpp @@ -49,6 +49,8 @@ void Runtime::ReadArgs(int argc, const char *const *argv) { config.interface.mouse_disabled = true; } else if (strcmp(arg + 2, "no-hud") == 0) { config.interface.visual_disabled = true; + } else if (strcmp(arg + 2, "no-audio") == 0) { + config.interface.audio_disabled = true; } else { cerr << "unknown option " << arg << endl; error = true; @@ -109,9 +111,6 @@ void Runtime::ReadArgs(int argc, const char *const *argv) { } } } - } else if (isdigit(arg[0])) { - // positional number interpreted as -n - n = strtoul(arg, nullptr, 10); } else { cerr << "unable to interpret argument " << i << " (" << arg << ")" << endl;