From 217e6482eb7d31f2158f74f0cd54a22cae8aa183 Mon Sep 17 00:00:00 2001 From: Sacha Date: Fri, 28 Jun 2013 03:40:45 +1000 Subject: [PATCH] Qt Buildfix. --- Qt/PPSSPP.pro | 2 ++ UI/MainScreen.cpp | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Qt/PPSSPP.pro b/Qt/PPSSPP.pro index 7890f4f0c6..aed48f2b9f 100755 --- a/Qt/PPSSPP.pro +++ b/Qt/PPSSPP.pro @@ -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 \ diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 78b7e696e9..521846ecb1 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -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; -} \ No newline at end of file +}