mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-08 07:51:19 +12:00
proc_ui: Fix crash due to incorrect version handling
Resolves a crash in NEX Remix
This commit is contained in:
parent
a16c37f0c5
commit
91a010fbdd
2 changed files with 4 additions and 1 deletions
|
@ -391,6 +391,9 @@ namespace proc_ui
|
|||
{
|
||||
cemuLog_log(LogType::Force, "ProcUI: Trying to register callback before init");
|
||||
cemu_assert_suspicious();
|
||||
// this shouldn't happen but lets set the memory pointers anyway to prevent a crash in case the user has incorrect meta info
|
||||
s_memAllocPtr = gCoreinitData->MEMAllocFromDefaultHeap.GetMPTR();
|
||||
s_memFreePtr = gCoreinitData->MEMFreeToDefaultHeap.GetMPTR();
|
||||
}
|
||||
ProcUIInternalCallbackEntry* entry = (ProcUIInternalCallbackEntry*)_AllocMem(sizeof(ProcUIInternalCallbackEntry));
|
||||
entry->funcPtr = funcPtr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue