diff options
author | Nicolas Bacca | 2002-05-05 09:40:46 +0000 |
---|---|---|
committer | Nicolas Bacca | 2002-05-05 09:40:46 +0000 |
commit | 59374705586d137fe6b847f4af4e972b02c35fbe (patch) | |
tree | b97640672e5d33fb05bfe21b3274548b94156165 /wince | |
parent | 4c605357cf58e9b088e830300199e4898b8212cc (diff) | |
download | scummvm-rg350-59374705586d137fe6b847f4af4e972b02c35fbe.tar.gz scummvm-rg350-59374705586d137fe6b847f4af4e972b02c35fbe.tar.bz2 scummvm-rg350-59374705586d137fe6b847f4af4e972b02c35fbe.zip |
Update argv to new detector
svn-id: r4200
Diffstat (limited to 'wince')
-rw-r--r-- | wince/pocketpc.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/wince/pocketpc.cpp b/wince/pocketpc.cpp index a93cb4b5c6..d3a5372652 100644 --- a/wince/pocketpc.cpp +++ b/wince/pocketpc.cpp @@ -349,18 +349,23 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLin int argc = 3; char* argv[3]; char argdir[MAX_PATH]; + char *game_name; sound_activated = true; hide_toolbar = false; scummcfg = new Config("scummvm.ini", "scummvm"); - argv[0] = NULL; - argv[1] = GameSelector(); + game_name = GameSelector(); + if (!game_name) + return 0; + + argv[0] = NULL; sprintf(argdir, "-p%s", _directory); - argv[2] = argdir; + argv[1] = argdir; + argv[2] = game_name; - if (!argv[1]) + if (!argv[2]) return 0; if (detector.detectMain(argc, argv)) |