]> git.localhorst.tv Git - blank.git/blobdiff - src/app/Runtime.cpp
remove positional frames argument
[blank.git] / src / app / Runtime.cpp
index 8ddab262e483e34b5f24f01fab08d13b5f9702dd..e5f74b459ec14d38a7b589b81623d470056d1c8f 100644 (file)
@@ -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;