Change some CNANDContentLoader logic to what was probably intended. Kills some warn logs when opening Dolphin.

This commit is contained in:
Jordan Woyak 2013-02-17 01:57:25 -06:00
parent 3330842505
commit bf4be1d8d1
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ bool CNANDContentLoader::Initialize(const std::string& _rName)
{
std::string TMDFileName(m_Path);
if (File::IsDirectory(TMDFileName))
if ('/' == *TMDFileName.rbegin())
TMDFileName += "title.tmd";
else
m_Path = TMDFileName.substr(0, TMDFileName.find("title.tmd"));