mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 16:49:12 +01:00
IOS: Do not manually close devices in destructor
This used to be necessary for properly cleaning up the FS state because the old FS implementation used static state and only performed cleanup in the close function, not in the destructor. Now that the static state is gone, we do not need to close devices manually anymore.
This commit is contained in:
parent
b2de380d16
commit
95aae11164
@ -188,14 +188,6 @@ Kernel::Kernel()
|
||||
|
||||
Kernel::~Kernel()
|
||||
{
|
||||
// Close all devices that were opened
|
||||
for (auto& device : m_fdmap)
|
||||
{
|
||||
if (!device)
|
||||
continue;
|
||||
device->Close(0);
|
||||
}
|
||||
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(m_device_map_mutex);
|
||||
m_device_map.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user