Revert "Removed debug code"

This reverts commit d6ff261fcc.
This commit is contained in:
Adubbz
2019-08-06 21:32:28 +10:00
parent 5e0f4130c4
commit dac951f72b
14 changed files with 562 additions and 0 deletions

View File

@@ -19,6 +19,7 @@
#include <stratosphere/kvdb/kvdb_memory_key_value_store.hpp>
#include <optional>
#include "../debug.hpp"
#include "../ncm_contentmetadatabase.hpp"
#include "../ncm_contentstorage.hpp"
#include "../ncm_fs.hpp"
@@ -149,6 +150,9 @@ namespace sts::ncm::impl {
if (g_initialized) {
return ResultSuccess;
}
R_ASSERT(debug::Initialize());
debug::DebugLog("ContentManager::InitializeContentManager\n");
size_t cur_storage_index = g_num_content_storage_entries;
@@ -253,6 +257,8 @@ namespace sts::ncm::impl {
}
void FinalizeContentManager() {
debug::DebugLog("Finalizing content manager...\n");
{
std::scoped_lock<HosMutex> lk(g_mutex);