InitInterfaceLoadState matching

This commit is contained in:
Dethrace Labs 2025-11-03 10:32:23 +13:00 committed by Dethrace Engineering Department
parent e6445f10ab
commit 024963b042
1 changed files with 5 additions and 1 deletions

View File

@ -883,8 +883,12 @@ void UnlockInterfaceStuff(void) {
// IDA: void __cdecl InitInterfaceLoadState()
// FUNCTION: CARM95 0x0041dcc7
void InitInterfaceLoadState(void) {
int i;
memset(gCursors, 0, sizeof(gCursors));
// original code uses 4, not BR_ASIZE(gCursors). Bug?
for (i = 0; i < 4; i++) {
gCursors[i] = NULL;
}
}
// IDA: tS8* __usercall ConvertPixTo16BitStripMap@<EAX>(br_pixelmap *pBr_map@<EAX>)