check for --resourcePath in addition to -i to match the --help string
git-svn-id: http://skia.googlecode.com/svn/trunk@11186 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
2950038110
commit
55ebe8eca0
@ -769,7 +769,7 @@ SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* dev
|
||||
const char* const commandName = argv[0];
|
||||
char* const* stop = argv + argc;
|
||||
for (++argv; argv < stop; ++argv) {
|
||||
if (strcmp(*argv, "-i") == 0) {
|
||||
if (!strcmp(*argv, "-i") || !strcmp(*argv, "--resourcePath")) {
|
||||
argv++;
|
||||
if (argv < stop && **argv) {
|
||||
resourcePath = *argv;
|
||||
|
Loading…
Reference in New Issue
Block a user