summaryrefslogtreecommitdiff
path: root/src/JSystem/JKernel
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2025-12-24 16:54:21 -0800
committerGitHub <noreply@github.com>2025-12-24 16:54:21 -0800
commitcefe919b8d39cb5b60d79b1dc7452e80abdf9657 (patch)
tree10dd6dc6ea2141978d64bfcb2a042a1a0eabc47e /src/JSystem/JKernel
parent8a478c5ebed40998659357dae0b8047af9f2050f (diff)
msl_c mostly matching for wii/shield (#2994)
Diffstat (limited to 'src/JSystem/JKernel')
-rw-r--r--src/JSystem/JKernel/JKRFileLoader.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/JSystem/JKernel/JKRFileLoader.cpp b/src/JSystem/JKernel/JKRFileLoader.cpp
index 8a96cafceb..0fd148394e 100644
--- a/src/JSystem/JKernel/JKRFileLoader.cpp
+++ b/src/JSystem/JKernel/JKRFileLoader.cpp
@@ -1,6 +1,9 @@
#include "JSystem/JSystem.h" // IWYU pragma: keep
#include "JSystem/JKernel/JKRFileLoader.h"
+
+#define MSL_USE_INLINES 1 // needed to inline tolower call. not inlined elsewhere in the repo
+
#include "string.h"
#include "ctype.h"
#include "global.h"
@@ -122,15 +125,7 @@ const char* JKRFileLoader::fetchVolumeName(char* buffer, s32 bufferSize, const c
path++;
while (*path != 0 && *path != '/') {
if (1 < bufferSize) {
- int lower_char;
- int ch = (int)*path;
- if (ch == -1) {
- lower_char = -1;
- } else {
- lower_char = __lower_map[ch & 0xFF];
- }
-
- *buffer = lower_char;
+ *buffer = tolower(*path);
buffer++;
bufferSize--;
}