From e17c872d8f6f81aeac79076faa6a55d1f9b05e78 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Wed, 3 Feb 2010 02:40:29 +0000 Subject: [PATCH] Fixes detection of some wii root files git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4997 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp index ebca8d83e7..727e83c979 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp @@ -32,9 +32,12 @@ std::string HLE_IPC_BuildFilename(const char* _pFilename, int _size) std::string Filename = std::string(File::GetUserPath(D_WIIUSER_IDX)); if (Buffer[1] == '0') - Filename += std::string("/title"); // this looks and feel like a hack... + Filename += std::string("title/"); // this looks and feel like a hack... - Filename += Buffer; + if (Buffer[0] == '/') + Filename += Buffer + 1; + else + Filename += Buffer; return Filename; }