From bf6f40efbffb75acc531c5bc89cedfd19340cbd3 Mon Sep 17 00:00:00 2001 From: ayuanx Date: Fri, 27 Nov 2009 20:48:54 +0000 Subject: [PATCH] An attempt to fix Monster Hunter Tri, verification needed yet. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4620 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_DI.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_DI.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_DI.cpp index cb6d694083..54ec4a09c4 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_DI.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_DI.cpp @@ -66,7 +66,12 @@ bool CWII_IPC_HLE_Device_di::Open(u32 _CommandAddress, u32 _Mode) bool CWII_IPC_HLE_Device_di::Close(u32 _CommandAddress) { - Memory::Write_U32(0, _CommandAddress + 4); + if (m_pFileSystem) + { + delete m_pFileSystem; + m_pFileSystem = NULL; + } + Memory::Write_U32(0, _CommandAddress + 4); m_Active = false; return true; }