Only do this for windows.

This commit is contained in:
shenweip committed 2013-11-19 20:46:33 +08:00
1 parent 09636da4ba
commit 7bd0e0de78
2 files changed
+12

No files matched your search

+4
View File
@@ -554,7 +554,11 @@ void Config::Save() {
void Config::AddRecent(const std::string &file) {
for (auto str = recentIsos.begin(); str != recentIsos.end(); str++) {
#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)