mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-11 07:03:33 +02:00
Recent: Don't resolve paths when iterating. We already resolve all paths on insert, and have done so for a long time.
This commit is contained in:
@@ -82,8 +82,7 @@ void RemoveRecentResolved(const std::string &resolvedFilename) {
|
||||
|
||||
std::lock_guard<std::mutex> guard(recentIsosLock);
|
||||
auto iter = std::remove_if(recentIsos.begin(), recentIsos.end(), [resolvedFilename](const auto &str) {
|
||||
const std::string recent = File::ResolvePath(str);
|
||||
return resolvedFilename == recent;
|
||||
return str == resolvedFilename;
|
||||
});
|
||||
// remove_if is weird.
|
||||
recentIsos.erase(iter, recentIsos.end());
|
||||
|
||||
Reference in New Issue
Block a user