mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-19 13:03:33 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user