diff --git a/source/install/install_nsp.cpp b/source/install/install_nsp.cpp index 1e15e16..93b343e 100755 --- a/source/install/install_nsp.cpp +++ b/source/install/install_nsp.cpp @@ -91,11 +91,15 @@ namespace tin::install::nsp std::shared_ptr contentStorage(new nx::ncm::ContentStorage(m_destStorageId)); // Attempt to delete any leftover placeholders - try - { + try { contentStorage->DeletePlaceholder(*(NcmPlaceHolderId*)&ncaId); } catch (...) {} + // Attempt to delete leftover ncas + try { + contentStorage->Delete(ncaId); + } + catch (...) {} LOG_DEBUG("Size: 0x%lx\n", ncaSize); diff --git a/source/install/install_xci.cpp b/source/install/install_xci.cpp index 6e1eb46..61d0341 100755 --- a/source/install/install_xci.cpp +++ b/source/install/install_xci.cpp @@ -87,11 +87,15 @@ namespace tin::install::xci std::shared_ptr contentStorage(new nx::ncm::ContentStorage(m_destStorageId)); // Attempt to delete any leftover placeholders - try - { + try { contentStorage->DeletePlaceholder(*(NcmPlaceHolderId*)&ncaId); } catch (...) {} + // Attempt to delete leftover ncas + try { + contentStorage->Delete(ncaId); + } + catch (...) {} LOG_DEBUG("Size: 0x%lx\n", ncaSize);