try to fix sdl config loading

This commit is contained in:
zeromus 2008-08-13 04:33:39 +00:00
parent 91147a80e0
commit 9356512e9e
1 changed files with 6 additions and 0 deletions

View File

@ -421,6 +421,12 @@ SDL_GL_LoadLibrary(0);
return -1;
}
if(g_config->parse(argc,argv)) {
printf("Error parsing config file\n");
SDL_Quit();
return -1;
}
// This is here so that a default fceu.cfg will be created on first
// run, even without a valid ROM to play.
g_config->save();