Qt Buildfix.

This commit is contained in:
Sacha 2013-06-28 03:40:45 +10:00
parent 8f163301eb
commit 217e6482eb
2 changed files with 5 additions and 3 deletions

View File

@ -45,6 +45,8 @@ HEADERS += ../native/base/QtMain.h
SOURCES += ../UI/EmuScreen.cpp \
../UI/MainScreen.cpp \
../UI/MenuScreens.cpp \
../UI/GameScreen.cpp \
../UI/GameSettingsScreen.cpp \
../UI/GamepadEmu.cpp \
../UI/GameInfoCache.cpp \
../UI/OnScreenDisplay.cpp \

View File

@ -142,7 +142,7 @@ void PathBrowser::SetPath(const std::string &path) {
for (size_t i = 0; i < path_.size(); i++) {
if (path_[i] == '\\') path_[i] = '/';
}
if (!path_.size() || (path_.back() != '/'))
if (!path_.size() || (path_[path_.size() - 1] != '/'))
path_ += "/";
}
@ -191,7 +191,7 @@ void PathBrowser::Navigate(const std::string &path) {
path_ = path;
else
path_ = path_ + path;
if (path_.back() != '/')
if (path_[path_.size() - 1] != '/')
path_ += "/";
}
}
@ -372,4 +372,4 @@ UI::EventReturn MainScreen::OnCredits(UI::EventParams &e) {
UI::EventReturn MainScreen::OnSupport(UI::EventParams &e) {
return UI::EVENT_DONE;
}
}