mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
UI: Resolve symlinks when adding things to recent.
See #11131. This also normalizes paths, captialization, etc. as necessary.
This commit is contained in:
1 parent
1fdb1f785a
commit
048afb6d24
7 files changed
+52
-38
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user