diff options
| author | JosJuice <josjuice@gmail.com> | 2017-05-06 17:08:18 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-05-06 18:39:51 +0200 |
| commit | 71d105e545fc31e51682b27ee1f6e35a18c4ea9c (patch) | |
| tree | 22cca47421c7f2302d5fdea020e1151f10f5d05e /Source/Core/DolphinWX/FrameTools.cpp | |
| parent | c36d24a851ea8dc00c55de081be6f1bfa2f802c0 (diff) | |
DolphinWX: Use title ID from ISOFile when possible
This skips creating volume objects, which can take a while.
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/FrameTools.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index d3b26ab99d..09a6e625fa 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -1227,9 +1227,7 @@ void CFrame::OnUninstallWAD(wxCommandEvent&) return; } - const auto volume = DiscIO::CreateVolumeFromFilename(file->GetFileName()); - u64 title_id; - volume->GetTitleID(&title_id); + u64 title_id = file->GetTitleID(); if (!DiscIO::CNANDContentManager::Access().RemoveTitle(title_id, Common::FROM_CONFIGURED_ROOT)) { PanicAlertT("Failed to remove this title from the NAND."); |
