Fixes detection of some wii root files

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4997 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice 2010-02-03 02:40:29 +00:00
parent 961aad5aa6
commit e17c872d8f
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}