From 62629b9b0037645e6a9160112aefa947e401f412 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Mon, 11 Aug 2008 04:26:37 +0000 Subject: [PATCH] fceux now writes config direcoty as soon as it starts whether a rom is loaded or not [[Split portion of a mixed commit.]] --- src/drivers/sdl/sdl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/drivers/sdl/sdl.cpp b/src/drivers/sdl/sdl.cpp index a9cec03b..0508c2d9 100644 --- a/src/drivers/sdl/sdl.cpp +++ b/src/drivers/sdl/sdl.cpp @@ -413,11 +413,15 @@ SDL_GL_LoadLibrary(0); // Initialize the configuration system g_config = InitConfig(); + if(!g_config) { 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(); // initialize the infrastructure error = FCEUI_Initialize(); if(error != 1) {