mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 08:20:30 +02:00
Qt Buildfix.
This commit is contained in:
1 parent
8f163301eb
commit
217e6482eb
2 files changed
+5
-3
No files matched your search
+3
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user