Slightly less broken SDL config

This commit is contained in:
jeblanchard 2008-06-10 08:45:20 +00:00
parent 4df6b97013
commit 4b43a1429d
2 changed files with 3 additions and 2 deletions

View File

@ -608,7 +608,8 @@ Config::_load()
pos = line.find(" ");
name = line.substr(0, (pos > eqPos) ? eqPos : pos);
pos = line.find_first_not_of(" ", eqPos + 1);
value = line.substr(pos);
if (pos == std::string::npos) value = "";
else value = line.substr(pos);
// check if the option exists, and if so, set it appropriately
str_i = _strOptMap.find(name);

View File

@ -290,7 +290,7 @@ DriverInitialize(FCEUGI *gi)
static void
DriverKill()
{
//g_config->save();
g_config->save();
#ifndef WIN32
// XXX soules - capturing all these signals seems pointless