From f02e88b87e4858127b9a27416c0a438e49124bda Mon Sep 17 00:00:00 2001 From: Sacha Date: Sun, 24 Nov 2013 03:11:33 +1000 Subject: [PATCH] Buildfix. --- Core/Config.cpp | 6 +++--- UI/GameScreen.cpp | 6 +++--- lang | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index ffaeba439e..3ac0a40ca7 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -553,11 +553,11 @@ void Config::Save() { } void Config::AddRecent(const std::string &file) { - for (auto str = recentIsos.begin(); str != recentIsos.end(); str++) { + for (auto str = recentIsos.begin(); str != recentIsos.end(); ++str) { #ifdef _WIN32 - if (!strcmpIgnore(*str, file, "\\", "/")) { + if (!strcmpIgnore((*str).c_str(), file.c_str(), "\\", "/")) { #else - if (!strcmp(*str, file)) { + if (!strcmp((*str).c_str(), file.c_str())) { #endif recentIsos.erase(str); recentIsos.insert(recentIsos.begin(), file); diff --git a/UI/GameScreen.cpp b/UI/GameScreen.cpp index 6a509a25e6..abe9bb0684 100644 --- a/UI/GameScreen.cpp +++ b/UI/GameScreen.cpp @@ -212,9 +212,9 @@ UI::EventReturn GameScreen::OnCreateShortcut(UI::EventParams &e) { bool GameScreen::isRecentGame(std::string gamePath) { for (auto it = g_Config.recentIsos.begin(); it != g_Config.recentIsos.end(); ++it) { #ifdef _WIN32 - if (!strcmpIgnore((*it).c_str(), gamePath_.c_str(), "\\","/")) + if (!strcmpIgnore((*it).c_str(), gamePath.c_str(), "\\","/")) #else - if (!strcmp((*it).c_str(), gamePath_)) + if (!strcmp((*it).c_str(), gamePath.c_str())) #endif return true; } @@ -226,7 +226,7 @@ UI::EventReturn GameScreen::OnRemoveFromRecent(UI::EventParams &e) { #ifdef _WIN32 if (!strcmpIgnore((*it).c_str(), gamePath_.c_str(), "\\","/")) { #else - if (!strcmp((*it).c_str(), gamePath_)) { + if (!strcmp((*it).c_str(), gamePath_.c_str())) { #endif g_Config.recentIsos.erase(it); screenManager()->switchScreen(new MainScreen()); diff --git a/lang b/lang index c5d5f87fdd..697aa7015c 160000 --- a/lang +++ b/lang @@ -1 +1 @@ -Subproject commit c5d5f87fddeac9472bbce3e778729b1b7f148e94 +Subproject commit 697aa7015cffebf42e4dd25632762c4a76ad01d4