updated serializers

added some game names to new TIA settings
This commit is contained in:
thrust26 2019-01-06 18:04:19 +01:00
parent da269fefed
commit e2dabba309
4 changed files with 12 additions and 6 deletions

View File

@ -27,7 +27,7 @@
#include "StateManager.hxx" #include "StateManager.hxx"
#define STATE_HEADER "06000001state" #define STATE_HEADER "06000002state"
// #define MOVIE_HEADER "03030000movie" // #define MOVIE_HEADER "03030000movie"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -493,6 +493,7 @@ bool Player::save(Serializer& out) const
out.putBool(myIsReflected); out.putBool(myIsReflected);
out.putBool(myIsDelaying); out.putBool(myIsDelaying);
out.putBool(myStuffedClock);
} }
catch(...) catch(...)
{ {
@ -539,6 +540,7 @@ bool Player::load(Serializer& in)
myIsReflected = in.getBool(); myIsReflected = in.getBool();
myIsDelaying = in.getBool(); myIsDelaying = in.getBool();
myStuffedClock = in.getBool();
applyColors(); applyColors();
} }

View File

@ -296,6 +296,8 @@ bool TIA::save(Serializer& out) const
out.putByte(myPFBitsDelay); out.putByte(myPFBitsDelay);
out.putByte(myPFColorDelay); out.putByte(myPFColorDelay);
out.putByte(myP0SwapDelay);
out.putByte(myP1SwapDelay);
} }
catch(...) catch(...)
{ {
@ -368,6 +370,8 @@ bool TIA::load(Serializer& in)
myPFBitsDelay = in.getByte(); myPFBitsDelay = in.getByte();
myPFColorDelay = in.getByte(); myPFColorDelay = in.getByte();
myP0SwapDelay = in.getByte();
myP1SwapDelay = in.getByte();
} }
catch(...) catch(...)
{ {

View File

@ -202,27 +202,27 @@ void DeveloperDialog::addTiaTab(const GUI::Font& font)
ypos += lineHeight + VGAP * 1; ypos += lineHeight + VGAP * 1;
myPFBitsWidget = new CheckboxWidget(myTab, font, HBORDER + INDENT, ypos + 1, myPFBitsWidget = new CheckboxWidget(myTab, font, HBORDER + INDENT, ypos + 1,
"Delayed playfield bits"); "Delayed playfield bits (Thrust, Pesco)");
wid.push_back(myPFBitsWidget); wid.push_back(myPFBitsWidget);
ypos += lineHeight + VGAP * 1; ypos += lineHeight + VGAP * 1;
myPFColorWidget = new CheckboxWidget(myTab, font, HBORDER + INDENT, ypos + 1, myPFColorWidget = new CheckboxWidget(myTab, font, HBORDER + INDENT, ypos + 1,
"Delayed playfield color"); "Delayed playfield color (Quick Step/Ixion)");
wid.push_back(myPFColorWidget); wid.push_back(myPFColorWidget);
ypos += lineHeight + VGAP * 1; ypos += lineHeight + VGAP * 1;
myGRP0SwapWidget = new CheckboxWidget(myTab, font, HBORDER + INDENT, ypos + 1, myGRP0SwapWidget = new CheckboxWidget(myTab, font, HBORDER + INDENT, ypos + 1,
"Delayed player 0 swap"); "Delayed player 0 swap (He-Man V1, Obelix)");
wid.push_back(myGRP0SwapWidget); wid.push_back(myGRP0SwapWidget);
ypos += lineHeight + VGAP * 1; ypos += lineHeight + VGAP * 1;
myGRP1SwapWidget = new CheckboxWidget(myTab, font, HBORDER + INDENT, ypos + 1, myGRP1SwapWidget = new CheckboxWidget(myTab, font, HBORDER + INDENT, ypos + 1,
"Delayed player 1 swap"); "Delayed player 1 swap (He-Man V2)");
wid.push_back(myGRP1SwapWidget); wid.push_back(myGRP1SwapWidget);
ypos += lineHeight + VGAP * 1; ypos += lineHeight + VGAP * 1;
myGRPxStuffedWidget = new CheckboxWidget(myTab, font, HBORDER + INDENT, ypos + 1, myGRPxStuffedWidget = new CheckboxWidget(myTab, font, HBORDER + INDENT, ypos + 1,
"Stuffed player move"); "Stuffed player move (Kool Aid Man/Thunderground)");
wid.push_back(myGRPxStuffedWidget); wid.push_back(myGRPxStuffedWidget);
ypos += lineHeight + VGAP * 1; ypos += lineHeight + VGAP * 1;