fix in win32

This commit is contained in:
p.kosyh 2011-04-20 14:55:44 +00:00
parent 0f24f26f0f
commit 44d28e43d0

View file

@ -124,15 +124,20 @@ int main(int argc, char *argv[])
#ifndef S60
putenv("SDL_MOUSE_RELATIVE=0"); /* test this! */
#endif
#ifdef _WIN32_WCE
wince_init(argv[0]);
#else
#ifdef S60
extern char s60_data[];
strcpy(game_cwd, s60_data);
#else
#ifdef _WIN32
strcpy(game_cwd, dirname(argv[0]));
#else
getcwd(game_cwd, sizeof(game_cwd));
#endif
#endif
#endif
unix_path(game_cwd);
setdir(game_cwd);