--inputcfg will no longer crash without a filename

This commit is contained in:
punkrockguy318 2008-09-24 08:26:44 +00:00
parent 94e8c6389a
commit 5cfc44801a
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,5 @@
---version 2.0.3 yet to be released---
24-sep-2008 - punkrockguy318 - --inputcfg can now be used without a filename
24-sep-2008 - punkrockguy318 - [ 2085437 ] should fix issues with missing
author field crashing fceux
24-sep-2008 - punkrockguy318 - [ 2047057 ] added uninstall script for gfceux

View File

@ -448,6 +448,11 @@ SDL_GL_LoadLibrary(0);
// This is here so that a default fceux.cfg will be created on first
// run, even without a valid ROM to play.
g_config->save();
std::string s;
g_config->getOption("SDL.InputCfg", &s);
// update the input devices
UpdateInput(g_config);
if(romIndex <= 0) {
ShowUsage(argv[0]);
@ -457,8 +462,7 @@ SDL_GL_LoadLibrary(0);
}
// update the input devices
UpdateInput(g_config);
// update the emu core
UpdateEMUCore(g_config);