mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 00:33:34 +01:00
Only do this for windows.
This commit is contained in:
1 parent
09636da4ba
commit
7bd0e0de78
2 files changed
+12
No files matched your search
@@ -211,7 +211,11 @@ 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(), "\\","/"))
|
||||
#else
|
||||
if (!strcmp((*it).c_str(), gamePath_))
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -219,7 +223,11 @@ bool GameScreen::isRecentGame(std::string gamePath) {
|
||||
|
||||
UI::EventReturn GameScreen::OnRemoveFromRecent(UI::EventParams &e) {
|
||||
for (auto it = g_Config.recentIsos.begin(); it != g_Config.recentIsos.end(); ++it) {
|
||||
#ifdef _WIN32
|
||||
if (!strcmpIgnore((*it).c_str(), gamePath_.c_str(), "\\","/")) {
|
||||
#else
|
||||
if (!strcmp((*it).c_str(), gamePath_)) {
|
||||
#endif
|
||||
g_Config.recentIsos.erase(it);
|
||||
screenManager()->switchScreen(new MainScreen());
|
||||
return UI::EVENT_DONE;
|
||||
|
||||
Reference in new issue
Block a user