Merge pull request #5391 from leoetlino/delete-title-content

IOS/ES: Implement DeleteTitleContent properly
This commit is contained in:
Leo Lam 2017-05-13 00:48:28 +02:00 committed by GitHub
commit ea89e8566e
11 changed files with 121 additions and 84 deletions

View file

@ -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()