Separate MxCore counter (#663)

This commit is contained in:
MS
2024-03-12 14:59:39 -04:00
committed by GitHub
parent 62a3f50287
commit dcc3946a08
7 changed files with 28 additions and 21 deletions

View File

@@ -1,12 +1,15 @@
#include "mxcore.h"
#include "define.h"
#include <assert.h>
// GLOBAL: LEGO1 0x1010141c
MxU32 MxCore::g_nextCoreId = 0;
// FUNCTION: LEGO1 0x100ae1a0
MxCore::MxCore()
{
m_id = (MxU32) g_mxcoreCount[0];
g_mxcoreCount[0]++;
m_id = g_nextCoreId++;
assert(g_nextCoreId);
}
// FUNCTION: LEGO1 0x100ae1e0
@@ -17,5 +20,6 @@ MxCore::~MxCore()
// FUNCTION: LEGO1 0x100ae1f0
MxLong MxCore::Notify(MxParam& p_param)
{
assert(0);
return 0;
}