Changed --vsync true to --vsync on.

Updated README.md.
This commit is contained in:
Aloshi 2014-11-23 10:21:36 -06:00
parent cefe9b6287
commit 9d2b7e5e66
2 changed files with 3 additions and 3 deletions

View file

@ -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. --no-exit - do not display 'exit' in the ES menu.
--debug - print additional output to the console, primarily about input. --debug - print additional output to the console, primarily about input.
--windowed - run ES in a window, works best in conjunction with --resolution [w] [h]. --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. --scrape - run the interactive command-line metadata scraper.
``` ```

View file

@ -60,7 +60,7 @@ bool parseArgs(int argc, char* argv[], unsigned int* width, unsigned int* height
Settings::getInstance()->setBool("Windowed", true); Settings::getInstance()->setBool("Windowed", true);
}else if(strcmp(argv[i], "--vsync") == 0) }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); Settings::getInstance()->setBool("VSync", vsync);
i++; // skip vsync value i++; // skip vsync value
}else if(strcmp(argv[i], "--scrape") == 0) }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" "--debug even more logging\n"
"--scrape scrape using command line interface\n" "--scrape scrape using command line interface\n"
"--windowed not fullscreen, should be used with --resolution\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" "--help, -h summon a sentient, angry tuba\n\n"
"More information available in README.md.\n"; "More information available in README.md.\n";
return false; //exit after printing help return false; //exit after printing help