summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorayuanx <ayuanx@gmail.com>2009-11-27 20:48:54 +0000
committerayuanx <ayuanx@gmail.com>2009-11-27 20:48:54 +0000
commitbf6f40efbffb75acc531c5bc89cedfd19340cbd3 (patch)
tree5d7d70cb74b0d040ead6488baffbd5719a90c2f6 /Source
parentea732db998be167cce88f9f9ffe747e030521ca1 (diff)
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
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_DI.cpp7
1 files changed, 6 insertions, 1 deletions
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;
}