Fix Segmentation Fault & Formatting
This commit is contained in:
@@ -18,8 +18,8 @@ const string Options::optionNames[] = {
|
||||
"sfxVolume",
|
||||
"difficulty",
|
||||
"cheatmode",
|
||||
"optimizedhand",
|
||||
"cheatmodedecks",
|
||||
"optimizedhand",
|
||||
"cheatmodedecks",
|
||||
"displayOSD",
|
||||
"closed_hand",
|
||||
"hand_direction",
|
||||
@@ -352,11 +352,11 @@ int GameOptions::load()
|
||||
}
|
||||
// (PSY) Make sure that cheatmode is switched off for ineligible profiles:
|
||||
if (options[Options::ACTIVE_PROFILE].str != SECRET_PROFILE)
|
||||
{
|
||||
{
|
||||
(*this)[Options::CHEATMODE].number = 0;
|
||||
(*this)[Options::OPTIMIZE_HAND].number = 0;
|
||||
(*this)[Options::CHEATMODEAIDECK].number = 0;
|
||||
}
|
||||
(*this)[Options::OPTIMIZE_HAND].number = 0;
|
||||
(*this)[Options::CHEATMODEAIDECK].number = 0;
|
||||
}
|
||||
|
||||
//Default values. Anywhere else to put those ?
|
||||
if (!(*this)[Options::MAX_GRADE].number)
|
||||
@@ -371,11 +371,11 @@ int GameOptions::save()
|
||||
{
|
||||
// (PSY) Make sure that cheatmode is switched off for ineligible profiles:
|
||||
if (options[Options::ACTIVE_PROFILE].str != SECRET_PROFILE)
|
||||
{
|
||||
{
|
||||
(*this)[Options::CHEATMODE].number = 0;
|
||||
(*this)[Options::OPTIMIZE_HAND].number = 0;
|
||||
(*this)[Options::CHEATMODEAIDECK].number = 0;
|
||||
}
|
||||
(*this)[Options::OPTIMIZE_HAND].number = 0;
|
||||
(*this)[Options::CHEATMODEAIDECK].number = 0;
|
||||
}
|
||||
|
||||
std::ofstream file;
|
||||
if (JFileSystem::GetInstance()->openForWrite(file, mFilename))
|
||||
@@ -997,9 +997,9 @@ OptionManaDisplay::OptionManaDisplay()
|
||||
{
|
||||
mDef.values.push_back(EnumDefinition::assoc(DYNAMIC, "Eye candy"));
|
||||
mDef.values.push_back(EnumDefinition::assoc(STATIC, "Simple"));
|
||||
mDef.values.push_back(EnumDefinition::assoc(NOSTARSDYNAMIC, "No Glitter"));
|
||||
mDef.values.push_back(EnumDefinition::assoc(NOSTARSDYNAMIC, "No Glitter"));
|
||||
mDef.values.push_back(EnumDefinition::assoc(BOTH, "Both"));//no luck in getting this to show up as an option.
|
||||
//Both should still work as always however the enum and this dont want to pair up, no "both" in options now.
|
||||
//Both should still work as always however the enum and this dont want to pair up, no "both" in options now.
|
||||
}
|
||||
;
|
||||
OptionVolume OptionVolume::mDef;
|
||||
|
||||
Reference in New Issue
Block a user