From 5835069a9d49fadabb7d10ea7f95fbf8897d179c Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Thu, 6 Jul 2023 17:43:48 +0300 Subject: [PATCH] Fix UB --- src/core/loader/ncsd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/loader/ncsd.cpp b/src/core/loader/ncsd.cpp index 5aab9404..21737ce2 100644 --- a/src/core/loader/ncsd.cpp +++ b/src/core/loader/ncsd.cpp @@ -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 Memory::loadNCSD(Crypto::AESEngine& aesEngine, const std::filesystem::path& path) { @@ -176,4 +177,4 @@ std::optional Memory::loadCXI(Crypto::AESEngine& aesEngine, const std::fil } return ncsd; -} \ No newline at end of file +}