diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2017-05-07 16:43:27 +0200 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2017-05-13 00:34:58 +0200 |
| commit | bacf52384ffcd83c2a8856ac4eabe63c0474d244 (patch) | |
| tree | 1d76343f7684ab2e19aed6986e41745bf40a2ef5 /Source/Core/DolphinQt2/GameList/GameFile.cpp | |
| parent | 12801fd722e4f4038722fc35de4edcb1f5d1b3ca (diff) | |
IOS/ES: Implement DeleteTitleContent properly
Just like DeleteTitle, Using CNANDContentManager is overkill,
inefficient and useless. And it results in a few failures in
situations where a delete should just always work.
But here it gets bonus points, because it manages to actually use
the TMD for deleting contents, when IOS does none of that and just
deletes files ending with .app in the title content directory. :)
Diffstat (limited to 'Source/Core/DolphinQt2/GameList/GameFile.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/GameList/GameFile.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt2/GameList/GameFile.cpp b/Source/Core/DolphinQt2/GameList/GameFile.cpp index 1088e66e82..2f23107776 100644 --- a/Source/Core/DolphinQt2/GameList/GameFile.cpp +++ b/Source/Core/DolphinQt2/GameList/GameFile.cpp @@ -13,6 +13,8 @@ #include "Common/NandPaths.h" #include "Core/ConfigManager.h" #include "Core/HW/WiiSaveCrypted.h" +#include "Core/IOS/ES/ES.h" +#include "Core/IOS/IOS.h" #include "DiscIO/Blob.h" #include "DiscIO/Enums.h" #include "DiscIO/NANDContentLoader.h" @@ -324,9 +326,8 @@ bool GameFile::Install() bool GameFile::Uninstall() { _assert_(m_platform == DiscIO::Platform::WII_WAD); - - return DiscIO::CNANDContentManager::Access().RemoveTitle(m_title_id, - Common::FROM_CONFIGURED_ROOT); + IOS::HLE::Kernel ios; + return ios.GetES()->DeleteTitleContent(m_title_id) == IOS::HLE::IPC_SUCCESS; } bool GameFile::ExportWiiSave() |
