summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorfires.gc <fires.gc@gmail.com>2009-03-09 17:31:30 +0000
committerfires.gc <fires.gc@gmail.com>2009-03-09 17:31:30 +0000
commit47d0c4d2604e94ce343aadaa9b7a34d014f606a7 (patch)
tree15e0ca5705fd062bf30cd63bfdd228985af00d43 /Source/Core
parente4b6b4c58393ed0f2bdd218feac5698af2b93c82 (diff)
just create an home directory if we have insert a disc
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2633 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp
index c45b2cfebb..a2d2f1770c 100644
--- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp
+++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp
@@ -55,8 +55,10 @@ bool CWII_IPC_HLE_Device_fs::Open(u32 _CommandAddress, u32 _Mode)
}
// create home directory
+ if (VolumeHandler::IsValid())
{
u32 TitleID = VolumeHandler::Read32(0);
+ _dbg_assert_(WII_IPC_FILEIO, TitleID != 0);
if (TitleID == 0) TitleID = 0xF00DBEEF;
char* pTitleID = (char*)&TitleID;