Fix savestate issue

This commit is contained in:
Henrik Rydgård
2026-07-10 12:28:44 +02:00
parent 41c3eba296
commit 3d7817a5e3
+4 -2
View File
@@ -334,12 +334,14 @@ public:
void setRemainingPackets(u32 remainingPackets) { remainingPackets_ = remainingPackets; } void setRemainingPackets(u32 remainingPackets) { remainingPackets_ = remainingPackets; }
static PSPAction *Create() { return new PostPutAction; } static PSPAction *Create() { return new PostPutAction; }
void DoState(PointerWrap &p) override { void DoState(PointerWrap &p) override {
auto s = p.Section("PostPutAction", 1); auto s = p.Section("PostPutAction", 1, 2);
if (!s) if (!s)
return; return;
Do(p, ringAddr_); Do(p, ringAddr_);
Do(p, remainingPackets_); if (s >= 2) {
Do(p, remainingPackets_);
}
} }
void run(MipsCall &call) override; void run(MipsCall &call) override;
private: private: