UI: Resolve symlinks when adding things to recent.

See #11131.  This also normalizes paths, captialization, etc. as
necessary.
This commit is contained in:
Unknown W. Brackets committed 2018-08-12 08:25:10 -07:00
1 parent 1fdb1f785a
commit 048afb6d24
7 files changed
+52 -38

No files matched your search

+1 -4
View File
@@ -66,10 +66,7 @@ bool GameInfo::Delete() {
// Just delete the one file (TODO: handle two-disk games as well somehow).
const char *fileToRemove = filePath_.c_str();
File::Delete(fileToRemove);
auto i = std::find(g_Config.recentIsos.begin(), g_Config.recentIsos.end(), fileToRemove);
if (i != g_Config.recentIsos.end()) {
g_Config.recentIsos.erase(i);
}
g_Config.RemoveRecent(filePath_);
return true;
}
case IdentifiedFileType::PSP_PBP_DIRECTORY: