diff --git a/branches/work/VerificationFailed/sources/ConsoleBackup/HeapChecker.cpp b/branches/work/VerificationFailed/sources/ConsoleBackup/HeapChecker.cpp index f338dd2..f6736fe 100644 --- a/branches/work/VerificationFailed/sources/ConsoleBackup/HeapChecker.cpp +++ b/branches/work/VerificationFailed/sources/ConsoleBackup/HeapChecker.cpp @@ -38,6 +38,15 @@ nn::Result HeapChecker::Check(std::wstring saveRoot, void* buf, size_t& bufSize) nn::Result result; common::SdReaderWriter sdReaderWriter; + // cecdセーブデータが存在しない場合は値を変更せずreturnする + { + nn::fs::FileInputStream nandFile; + result = nandFile.TryInitialize(std::wstring(saveRoot + std::wstring(L"sysdata/00010026/00000000")).c_str()); + if (result <= nn::fs::ResultNotFound()) + { + return nn::ResultSuccess(); + } + } for(; HEAP_SIZE_MIN < bufSize; bufSize /= 2) { @@ -103,7 +112,7 @@ nn::Result HeapChecker::Check(std::wstring saveRoot, void* buf, size_t& bufSize) if(std::memcmp(sha256WriteContext, sha256ReadContext, sizeof(sha256ReadContext)) != 0) { - COMMON_LOGGER("HeapChecker Failure!! HeapSize: %d\n", bufSize); + COMMON_LOGGER("MemoryChecker Failure!! MemrySize: %d\n", bufSize); } else {