diff --git a/include/loader/ncch.hpp b/include/loader/ncch.hpp index 8e35643b..4aa2ede7 100644 --- a/include/loader/ncch.hpp +++ b/include/loader/ncch.hpp @@ -64,8 +64,6 @@ struct NCCH { // Contents of the .code file in the ExeFS std::vector<u8> codeFile; - // Contains of the cart's save data - std::vector<u8> saveData; // The cart region. Only the CXI's region matters to us. Necessary to get past region locking std::optional<Regions> region = std::nullopt; std::vector<u8> smdh; diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp index 98574289..4be05549 100644 --- a/src/core/loader/ncch.cpp +++ b/src/core/loader/ncch.cpp @@ -155,8 +155,7 @@ bool NCCH::loadFromHeader(Crypto::AESEngine &aesEngine, IOFile& file, const FSIn } } - const u64 saveDataSize = *(u64*)&exheader[0x1C0 + 0x0]; // Size of save data in bytes - saveData.resize(saveDataSize, 0xff); + [[maybe_unused]] const u64 saveDataSize = *(u64*)&exheader[0x1C0 + 0x0]; // Size of save data in bytes compressCode = (exheader[0xD] & 1) != 0; stackSize = *(u32*)&exheader[0x1C];