NANDContentLoader: Replace a string rbegin() call with a back() call

This commit is contained in:
Lioncash 2015-10-07 09:47:26 -04:00
parent ec28d7df92
commit 5f181957b3
1 changed files with 1 additions and 1 deletions

View File

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