Files
isaac-port/generated-src/menu_character_entry.cpp
T
shweetandClaude Opus 5.5 9d4d4f5c64 Build 29: zero-length placeholder structs, generated-src with standard types
--check: 938/3256 method bodies compile for x86_64 (28.8%), 32-bit layout asserts hold; boot path 3/626 curated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:41:34 -05:00

32 lines
1.1 KiB
C++

#include "classes.h"
// 00946cd0
uint8_t Menu_Character_Entry::IsCharacterAvailable(int unused)
{
uint8_t isUnlocked;
void *playerConfig;
int playerType;
Manager *manager;
manager = g_manager;
playerType = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1))));
if ((playerType < 0) ||
((GHIDRA_INT((g_manager->_entityConfig)._players._end) -
GHIDRA_INT((g_manager->_entityConfig)._players._begin)) / 0x148 <= playerType)) {
playerConfig = (void *)0x0;
}
else {
playerConfig = (void *)(playerType * 0x148 + GHIDRA_INT((g_manager->_entityConfig)._players._begin));
}
if (-1 < *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(playerConfig) + 0xe8))) {
isUnlocked = PersistentGameData::Unlocked
(&g_manager->_persistentGameData,*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(playerConfig) + 0xe8)));
if ((isUnlocked == 0) ||
(((playerType == 9 || (playerType == 0x1e)) &&
((manager->_persistentGameData)._eventCounters[0x15] == 0)))) {
return 0;
}
}
return 1;
}