summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/IOS/Device.h2
-rw-r--r--Source/Core/Core/IOS/IOS.cpp8
2 files changed, 0 insertions, 10 deletions
diff --git a/Source/Core/Core/IOS/Device.h b/Source/Core/Core/IOS/Device.h
index 91b0a150f9..8461921cb1 100644
--- a/Source/Core/Core/IOS/Device.h
+++ b/Source/Core/Core/IOS/Device.h
@@ -179,8 +179,6 @@ public:
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);
diff --git a/Source/Core/Core/IOS/IOS.cpp b/Source/Core/Core/IOS/IOS.cpp
index 19992f8f9e..db0c3593f8 100644
--- a/Source/Core/Core/IOS/IOS.cpp
+++ b/Source/Core/Core/IOS/IOS.cpp
@@ -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);