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
This commit is contained in:
fires.gc 2009-03-09 17:31:30 +00:00
parent e4b6b4c583
commit 47d0c4d260
1 changed files with 2 additions and 0 deletions

View File

@ -55,8 +55,10 @@ bool CWII_IPC_HLE_Device_fs::Open(u32 _CommandAddress, u32 _Mode)
} }
// create home directory // create home directory
if (VolumeHandler::IsValid())
{ {
u32 TitleID = VolumeHandler::Read32(0); u32 TitleID = VolumeHandler::Read32(0);
_dbg_assert_(WII_IPC_FILEIO, TitleID != 0);
if (TitleID == 0) TitleID = 0xF00DBEEF; if (TitleID == 0) TitleID = 0xF00DBEEF;
char* pTitleID = (char*)&TitleID; char* pTitleID = (char*)&TitleID;