diff --git a/Assets/dll/melonDS.wbx.zst b/Assets/dll/melonDS.wbx.zst index e3fe69f166..dc655e0b6b 100644 Binary files a/Assets/dll/melonDS.wbx.zst and b/Assets/dll/melonDS.wbx.zst differ diff --git a/waterbox/melon/BizConsoleCreator.cpp b/waterbox/melon/BizConsoleCreator.cpp index 6f597db167..95798dc53c 100644 --- a/waterbox/melon/BizConsoleCreator.cpp +++ b/waterbox/melon/BizConsoleCreator.cpp @@ -507,8 +507,9 @@ static melonDS::DSi_NAND::NANDImage CreateNandImage( auto* tmd = reinterpret_cast(tmdFile.data()); u32 version = tmd->Contents.GetVersion(); - u64 contentSize; - memcpy(&contentSize, tmd->Contents.ContentSize, sizeof(contentSize)); + u64 contentSize = (u64)tmd->Contents.ContentSize[0] << 56 | (u64)tmd->Contents.ContentSize[1] << 48 + | (u64)tmd->Contents.ContentSize[2] << 40 | (u64)tmd->Contents.ContentSize[3] << 32 | (u64)tmd->Contents.ContentSize[4] << 24 + | (u64)tmd->Contents.ContentSize[5] << 16 | (u64)tmd->Contents.ContentSize[6] << 8 | (u64)tmd->Contents.ContentSize[7] << 0; nandFiles.push_back(std::make_pair(std::move(tmdFile), std::string(baseNandTitlePath.first))); @@ -535,8 +536,9 @@ static melonDS::DSi_NAND::NANDImage CreateNandImage( auto* tmd = reinterpret_cast(tmdFile.data()); u32 version = tmd->Contents.GetVersion(); - u64 contentSize; - memcpy(&contentSize, tmd->Contents.ContentSize, sizeof(contentSize)); + u64 contentSize = (u64)tmd->Contents.ContentSize[0] << 56 | (u64)tmd->Contents.ContentSize[1] << 48 + | (u64)tmd->Contents.ContentSize[2] << 40 | (u64)tmd->Contents.ContentSize[3] << 32 | (u64)tmd->Contents.ContentSize[4] << 24 + | (u64)tmd->Contents.ContentSize[5] << 16 | (u64)tmd->Contents.ContentSize[6] << 8 | (u64)tmd->Contents.ContentSize[7] << 0; nandFiles.push_back(std::make_pair(std::move(tmdFile), std::string(nandPath)));