mirror of https://github.com/stella-emu/stella.git
finished high scores definitions saving conversion to JSON
This commit is contained in:
parent
56fb6b0956
commit
71caf5e776
|
@ -207,6 +207,7 @@ NLOHMANN_JSON_SERIALIZE_ENUM(Event::Type, {
|
||||||
{Event::StartPauseMode, "StartPauseMode"},
|
{Event::StartPauseMode, "StartPauseMode"},
|
||||||
{Event::OptionsMenuMode, "OptionsMenuMode"},
|
{Event::OptionsMenuMode, "OptionsMenuMode"},
|
||||||
{Event::CmdMenuMode, "CmdMenuMode"},
|
{Event::CmdMenuMode, "CmdMenuMode"},
|
||||||
|
{Event::HighScoresMenuMode, "HighScoresMenuMode"},
|
||||||
{Event::DebuggerMode, "DebuggerMode"},
|
{Event::DebuggerMode, "DebuggerMode"},
|
||||||
{Event::ExitMode, "ExitMode"},
|
{Event::ExitMode, "ExitMode"},
|
||||||
{Event::TakeSnapshot, "TakeSnapshot"},
|
{Event::TakeSnapshot, "TakeSnapshot"},
|
||||||
|
|
|
@ -60,8 +60,6 @@ void Properties::set(PropType key, const string& value)
|
||||||
case PropType::Controller_MouseAxis:
|
case PropType::Controller_MouseAxis:
|
||||||
case PropType::Display_Format:
|
case PropType::Display_Format:
|
||||||
case PropType::Display_Phosphor:
|
case PropType::Display_Phosphor:
|
||||||
case PropType::Cart_Formats:
|
|
||||||
case PropType::Cart_Addresses:
|
|
||||||
{
|
{
|
||||||
BSPF::toUpperCase(myProperties[pos]);
|
BSPF::toUpperCase(myProperties[pos]);
|
||||||
break;
|
break;
|
||||||
|
@ -268,9 +266,6 @@ void Properties::print() const
|
||||||
<< get(PropType::Display_VCenter) << "|"
|
<< get(PropType::Display_VCenter) << "|"
|
||||||
<< get(PropType::Display_Phosphor) << "|"
|
<< get(PropType::Display_Phosphor) << "|"
|
||||||
<< get(PropType::Display_PPBlend) << "|"
|
<< get(PropType::Display_PPBlend) << "|"
|
||||||
<< get(PropType::Cart_Variations) << "|"
|
|
||||||
<< get(PropType::Cart_Formats) << "|"
|
|
||||||
<< get(PropType::Cart_Addresses) << "|"
|
|
||||||
<< get(PropType::Cart_Highscore)
|
<< get(PropType::Cart_Highscore)
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
@ -331,9 +326,6 @@ void Properties::printHeader()
|
||||||
<< "Display_VCenter|"
|
<< "Display_VCenter|"
|
||||||
<< "Display_Phosphor|"
|
<< "Display_Phosphor|"
|
||||||
<< "Display_PPBlend|"
|
<< "Display_PPBlend|"
|
||||||
<< "Cart_Variations|"
|
|
||||||
<< "Cart_Formats|"
|
|
||||||
<< "Cart_Addresses|"
|
|
||||||
<< "Cart_Highscore"
|
<< "Cart_Highscore"
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
@ -368,9 +360,6 @@ std::array<string, Properties::NUM_PROPS> Properties::ourDefaultProperties =
|
||||||
"0", // Display.VCenter
|
"0", // Display.VCenter
|
||||||
"NO", // Display.Phosphor
|
"NO", // Display.Phosphor
|
||||||
"0", // Display.PPBlend
|
"0", // Display.PPBlend
|
||||||
"1", // Cart.Variations
|
|
||||||
"", // Cart.Formats,
|
|
||||||
"", // Cart.Addresses
|
|
||||||
"" // Cart.Highscore
|
"" // Cart.Highscore
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -404,8 +393,5 @@ std::array<string, Properties::NUM_PROPS> Properties::ourPropertyNames =
|
||||||
"Display.VCenter",
|
"Display.VCenter",
|
||||||
"Display.Phosphor",
|
"Display.Phosphor",
|
||||||
"Display.PPBlend",
|
"Display.PPBlend",
|
||||||
"Cart.Variations",
|
|
||||||
"Cart.Formats",
|
|
||||||
"Cart.Addresses",
|
|
||||||
"Cart.Highscore"
|
"Cart.Highscore"
|
||||||
};
|
};
|
||||||
|
|
|
@ -48,9 +48,6 @@ enum class PropType : uInt8 {
|
||||||
Display_VCenter,
|
Display_VCenter,
|
||||||
Display_Phosphor,
|
Display_Phosphor,
|
||||||
Display_PPBlend,
|
Display_PPBlend,
|
||||||
Cart_Variations,
|
|
||||||
Cart_Formats,
|
|
||||||
Cart_Addresses,
|
|
||||||
Cart_Highscore,
|
Cart_Highscore,
|
||||||
NumTypes
|
NumTypes
|
||||||
};
|
};
|
||||||
|
|
|
@ -1022,9 +1022,7 @@ void GameInfoDialog::saveHighScoresProperties()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
myGameProperties.reset(PropType::Cart_Variations);
|
myGameProperties.reset(PropType::Cart_Highscore);
|
||||||
myGameProperties.reset(PropType::Cart_Formats);
|
|
||||||
myGameProperties.reset(PropType::Cart_Addresses);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue