Slightly less broken SDL config
This commit is contained in:
parent
4df6b97013
commit
4b43a1429d
|
@ -608,7 +608,8 @@ Config::_load()
|
||||||
pos = line.find(" ");
|
pos = line.find(" ");
|
||||||
name = line.substr(0, (pos > eqPos) ? eqPos : pos);
|
name = line.substr(0, (pos > eqPos) ? eqPos : pos);
|
||||||
pos = line.find_first_not_of(" ", eqPos + 1);
|
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
|
// check if the option exists, and if so, set it appropriately
|
||||||
str_i = _strOptMap.find(name);
|
str_i = _strOptMap.find(name);
|
||||||
|
|
|
@ -290,7 +290,7 @@ DriverInitialize(FCEUGI *gi)
|
||||||
static void
|
static void
|
||||||
DriverKill()
|
DriverKill()
|
||||||
{
|
{
|
||||||
//g_config->save();
|
g_config->save();
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
// XXX soules - capturing all these signals seems pointless
|
// XXX soules - capturing all these signals seems pointless
|
||||||
|
|
Loading…
Reference in New Issue