Fix UB
This commit is contained in:
@@ -53,6 +53,7 @@ bool Memory::mapCXI(NCSD& ncsd, NCCH& cxi) {
|
||||
// Back the IOFile for accessing the ROM, as well as the ROM's CXI partition, in the memory class.
|
||||
CXIFile = ncsd.file;
|
||||
loadedCXI = cxi;
|
||||
return true;
|
||||
}
|
||||
|
||||
std::optional<NCSD> Memory::loadNCSD(Crypto::AESEngine& aesEngine, const std::filesystem::path& path) {
|
||||
@@ -176,4 +177,4 @@ std::optional<NCSD> Memory::loadCXI(Crypto::AESEngine& aesEngine, const std::fil
|
||||
}
|
||||
|
||||
return ncsd;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user