From 55ea5dfbda90403e9e5aabfd27d3135c517b0178 Mon Sep 17 00:00:00 2001 From: JGM01 Date: Sat, 5 Sep 2026 22:55:59 -0400 Subject: [PATCH] I dont really want to change this to be honest. --- runtime/src/hle/storage/nand_api.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/src/hle/storage/nand_api.cpp b/runtime/src/hle/storage/nand_api.cpp index ed1ae24..c54b8f5 100644 --- a/runtime/src/hle/storage/nand_api.cpp +++ b/runtime/src/hle/storage/nand_api.cpp @@ -139,7 +139,10 @@ extern "C" int32_t NANDOpen_HLE(uint32_t pathPtr, uint32_t fileInfoPtr, uint32_t } } - const char* fopenMode = (mode == 2 || mode == 3) ? "r+b" : "rb"; + const char* fopenMode = "rb"; + if (mode == 1) fopenMode = "rb"; + else if (mode == 2) fopenMode = "r+b"; + else if (mode == 3) fopenMode = "r+b"; FILE* file = NandFopen(hostPath, fopenMode); if (!file && mode >= 2) {