Skip to content

Commit

Permalink
SaveState: Remove SavestateEntry_EmotionExtraMemory
Browse files Browse the repository at this point in the history
  • Loading branch information
DaZombieKiller committed Apr 21, 2024
1 parent 486fa19 commit cd89e90
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions pcsx2/SaveState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,25 +510,14 @@ class SavestateEntry_EmotionMemory final : public MemorySavestateEntry

const char* GetFilename() const override { return "eeMemory.bin"; }
u8* GetDataPtr() const override { return eeMem->Main; }
uint GetDataSize() const override { return sizeof(eeMem->Main); }
uint GetDataSize() const override { return CHECK_EXTRAMEM ? Ps2MemSize::TotalRam : sizeof(eeMem->Main); }

virtual bool FreezeIn(zip_file_t* zf) const override
{
return MemorySavestateEntry::FreezeIn(zf);
}
};

class SavestateEntry_EmotionExtraMemory final : public MemorySavestateEntry
{
public:
~SavestateEntry_EmotionExtraMemory() override = default;

const char* GetFilename() const override { return "eeExtraMem.bin"; }
u8* GetDataPtr() const override { return eeMem->ExtraMemory; }
uint GetDataSize() const override { return sizeof(eeMem->ExtraMemory); }
virtual bool IsRequired() const override { return CHECK_EXTRAMEM; }
};

class SavestateEntry_IopMemory final : public MemorySavestateEntry
{
public:
Expand Down Expand Up @@ -701,7 +690,6 @@ class SaveStateEntry_Achievements final : public BaseSavestateEntry

static const std::unique_ptr<BaseSavestateEntry> SavestateEntries[] = {
std::unique_ptr<BaseSavestateEntry>(new SavestateEntry_EmotionMemory),
std::unique_ptr<BaseSavestateEntry>(new SavestateEntry_EmotionExtraMemory),
std::unique_ptr<BaseSavestateEntry>(new SavestateEntry_IopMemory),
std::unique_ptr<BaseSavestateEntry>(new SavestateEntry_HwRegs),
std::unique_ptr<BaseSavestateEntry>(new SavestateEntry_IopHwRegs),
Expand Down

0 comments on commit cd89e90

Please sign in to comment.