From 9d2b7e5e66126e7742905d90ee8fdcd4086b2315 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Sun, 23 Nov 2014 10:21:36 -0600 Subject: [PATCH] Changed --vsync true to --vsync on. Updated README.md. --- README.md | 2 +- es-app/src/main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fbe7d12c9..4c3773219 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ You can use `--help` or `-h` to view a list of command-line options. Briefly out --no-exit - do not display 'exit' in the ES menu. --debug - print additional output to the console, primarily about input. --windowed - run ES in a window, works best in conjunction with --resolution [w] [h]. ---vsync [0/1] - turn vsync on or off (default is on), only works in fullscreen. +--vsync [1/on or 0/off] - turn vsync on or off (default is on). --scrape - run the interactive command-line metadata scraper. ``` diff --git a/es-app/src/main.cpp b/es-app/src/main.cpp index 2b856f7ca..bc5b75761 100644 --- a/es-app/src/main.cpp +++ b/es-app/src/main.cpp @@ -60,7 +60,7 @@ bool parseArgs(int argc, char* argv[], unsigned int* width, unsigned int* height Settings::getInstance()->setBool("Windowed", true); }else if(strcmp(argv[i], "--vsync") == 0) { - bool vsync = (strcmp(argv[i + 1], "true") == 0 || strcmp(argv[i + 1], "1") == 0) ? true : false; + bool vsync = (strcmp(argv[i + 1], "on") == 0 || strcmp(argv[i + 1], "1") == 0) ? true : false; Settings::getInstance()->setBool("VSync", vsync); i++; // skip vsync value }else if(strcmp(argv[i], "--scrape") == 0) @@ -81,7 +81,7 @@ bool parseArgs(int argc, char* argv[], unsigned int* width, unsigned int* height "--debug even more logging\n" "--scrape scrape using command line interface\n" "--windowed not fullscreen, should be used with --resolution\n" - "--vsync [1/true or 0/false] turn vsync on or off (default is on)\n" + "--vsync [1/on or 0/off] turn vsync on or off (default is on)\n" "--help, -h summon a sentient, angry tuba\n\n" "More information available in README.md.\n"; return false; //exit after printing help