mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-11 15:13:37 +02:00
Merge pull request #4576 from shenweip/patch-7
Ignore the difference between "\" and "/" in "recent" and "remove from recent".
This commit is contained in:
+5
-1
@@ -554,7 +554,11 @@ void Config::Save() {
|
||||
|
||||
void Config::AddRecent(const std::string &file) {
|
||||
for (auto str = recentIsos.begin(); str != recentIsos.end(); str++) {
|
||||
if (*str == file) {
|
||||
#ifdef _WIN32
|
||||
if (!strcmpIgnore(*str, file, "\\", "/")) {
|
||||
#else
|
||||
if (!strcmp(*str, file)) {
|
||||
#endif
|
||||
recentIsos.erase(str);
|
||||
recentIsos.insert(recentIsos.begin(), file);
|
||||
if ((int)recentIsos.size() > iMaxRecent)
|
||||
|
||||
Reference in New Issue
Block a user