Buildfixes from homebrew merge.

This commit is contained in:
Sacha committed 2013-12-05 22:41:23 +10:00
1 parent e7ec53a97f
commit 3ccbbcf63b
4 files changed
+19 -18

No files matched your search

+2 -2
View File
@@ -179,7 +179,7 @@ bool GameManager::InstallGame(std::string zipfile) {
const char *fn = zip_get_name(z, i, 0);
std::string zippedName = fn;
std::string outFilename = pspGame + zippedName.substr(stripChars);
bool isDir = outFilename.back() == '/';
bool isDir = *outFilename.rbegin() == '/';
if (isDir) {
File::CreateFullPath(outFilename.c_str());
} else {
@@ -203,7 +203,7 @@ bool GameManager::InstallGame(std::string zipfile) {
fn += stripChars;
std::string outFilename = pspGame + fn;
bool isDir = outFilename.back() == '/';
bool isDir = *outFilename.rbegin() == '/';
if (isDir)
continue;