procui: swap tickDelay and priority args in callbacks (#1408)

This commit is contained in:
capitalistspz 2024-11-09 05:21:06 +00:00 committed by GitHub
parent 813f9148b1
commit 4ac1ab162a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -427,7 +427,7 @@ namespace proc_ui
} }
if(callbackType != ProcUICallbackId::AcquireForeground) if(callbackType != ProcUICallbackId::AcquireForeground)
priority = -priority; priority = -priority;
AddCallbackInternal(funcPtr, userParam, priority, 0, s_CallbackTables[stdx::to_underlying(callbackType)][coreIndex]); AddCallbackInternal(funcPtr, userParam, 0, priority, s_CallbackTables[stdx::to_underlying(callbackType)][coreIndex]);
} }
void ProcUIRegisterCallback(ProcUICallbackId callbackType, void* funcPtr, void* userParam, sint32 priority) void ProcUIRegisterCallback(ProcUICallbackId callbackType, void* funcPtr, void* userParam, sint32 priority)
@ -437,7 +437,7 @@ namespace proc_ui
void ProcUIRegisterBackgroundCallback(void* funcPtr, void* userParam, uint64 tickDelay) void ProcUIRegisterBackgroundCallback(void* funcPtr, void* userParam, uint64 tickDelay)
{ {
AddCallbackInternal(funcPtr, userParam, 0, tickDelay, s_backgroundCallbackList); AddCallbackInternal(funcPtr, userParam, tickDelay, 0, s_backgroundCallbackList);
} }
void FreeCallbackChain(ProcUICallbackList& callbackList) void FreeCallbackChain(ProcUICallbackList& callbackList)