Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9507 from leoetlino/device-prepareforstate
IOS: Remove unnecessary and unused PrepareForState
  • Loading branch information
leoetlino committed Feb 14, 2021
2 parents 6944eaa + 6e8881a commit be2cd22
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions Source/Core/Core/IOS/Device.h
Expand Up @@ -179,8 +179,6 @@ class Device
Device(Kernel& ios, const std::string& device_name, DeviceType type = DeviceType::Static);

virtual ~Device() = default;
// Release any resources which might interfere with savestating.
virtual void PrepareForState(PointerWrap::Mode mode) {}
virtual void DoState(PointerWrap& p);
void DoStateShared(PointerWrap& p);

Expand Down
8 changes: 0 additions & 8 deletions Source/Core/Core/IOS/IOS.cpp
Expand Up @@ -745,14 +745,6 @@ void Kernel::DoState(PointerWrap& p)
if (m_title_id == Titles::MIOS)
return;

// We need to make sure all file handles are closed so IOS::HLE::FSDevice::DoState can
// successfully save or re-create /tmp
for (auto& descriptor : m_fdmap)
{
if (descriptor)
descriptor->PrepareForState(p.GetMode());
}

for (const auto& entry : m_device_map)
entry.second->DoState(p);

Expand Down

0 comments on commit be2cd22

Please sign in to comment.