mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +00:00
Qt Buildfix.
This commit is contained in:
parent
8f163301eb
commit
217e6482eb
@ -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 \
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user