Make JKRHeap::sCurrentHeap thread local

Needed because we're using true OS threading, so we can't do the normal JSystem heap changing on thread change.

Requires encapsulating it (removing the public static field)
This commit is contained in:
PJB3005
2026-02-24 23:35:16 +01:00
parent 2473e04818
commit 6fed5eb37c
3 changed files with 33 additions and 5 deletions
+3 -1
View File
@@ -285,7 +285,9 @@ void mDoGph_gInf_c::create() {
VISetTrapFilter(0);
#endif
#if PLATFORM_GCN
#if TARGET_PC
JFWDisplay::createManager(JKRHeap::getCurrentHeap(), JUTXfb::UNK_2, true);
#elif PLATFORM_GCN
JFWDisplay::createManager(JKRHeap::sCurrentHeap, JUTXfb::UNK_2, true);
#else
JFWDisplay::createManager(JKRHeap::getRootHeap2(), JUTXfb::UNK_2, true);