Curation round 4: popups, Seeds/Random, Game, KeyConfigs, offline NetplayManager, Console, TextureCache, render passes

Six agents took over PopupButtons/PopupQueue/AchievementOverlay, Seeds with the global Random (now seeded from the
clock as in the original), Game (g_game exists from Manager::Init on), KeyConfigs, an offline NetplayManager, Console's
output and printing, TextureCache, the color-mod and sprite shader passes, mod shaders and reload_resource_paths. An
integration pass moved callers to the new APIs (0 errors, 0 warnings with -Wall -Wextra). build/isaac loads the 34
installed mods and stops at ScoreSheet::ScoreSheet in Game's constructor; with the remaining stubs skipped under gdb the
intro cutscene plays through and the main menu's frame loop runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-11-20 01:32:19 -05:00
1 parent ddf913f304
commit fd8b965350
110 files changed
+6500 -40129

No files matched your search

+24 -24
View File
@@ -193,7 +193,7 @@ void PauseScreen::update_player_info_page()
}
if (g_menuManager == GHIDRA_CAST<MenuManager *>(0x0)) {
if (g_manager->_netplayManager == *GHIDRA_CAST<int *>((g_manager + 1))) {
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer((g_game->_pauseScreen)._playerIdx);
player = Game::GetPlayer(g_game,(g_game->_pauseScreen)._playerIdx);
controllerIndex = player->_controllerIndex;
}
else {
@@ -625,7 +625,7 @@ LAB_008d354d:
}
FUN_008d47c0(*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))),&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x44))),&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x48))),in_stack_ffffff88,
0x42c80000,*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x14)))) == 1);
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer((g_game->_pauseScreen)._playerIdx);
player = Game::GetPlayer(g_game,(g_game->_pauseScreen)._playerIdx);
descriptionLineCount =
InfoDisplayEntry::count_lines(player,*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 4)));
iVar1 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x44))));
@@ -699,7 +699,7 @@ void PauseScreen::render_items_page()
glyphX = pagePos.x + *backButtonNull;
glyphY = pagePos.y + backButtonNull[1];
if (g_manager->_netplayManager == *GHIDRA_CAST<int *>((g_manager + 1))) {
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer((g_game->_pauseScreen)._playerIdx);
player = Game::GetPlayer(g_game,(g_game->_pauseScreen)._playerIdx);
layerId = player->_controllerIndex;
}
else {
@@ -1459,7 +1459,7 @@ void PauseScreen::update_items_menu_selection()
playersEnd = GHIDRA_CAST<int *>(0x0);
playersCapacity = GHIDRA_CAST<int *>(0x0);
local_8 = 0;
local_1c = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer((g_game->_pauseScreen)._playerIdx);
local_1c = Game::GetPlayer(g_game,(g_game->_pauseScreen)._playerIdx);
if (local_1c == GHIDRA_CAST<Entity_Player *>(0x0)) {
piVar3 = GHIDRA_CAST<int *>(0x0);
}
@@ -2073,7 +2073,7 @@ void PauseScreen::Update()
update_player_info_page(GHIDRA_CAST<PauseScreen *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x268)))));
}
if (g_manager->_netplayManager == *GHIDRA_CAST<int *>((g_manager + 1))) {
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(this->_playerIdx);
player = Game::GetPlayer(g_game,this->_playerIdx);
controllerIndex = player->_controllerIndex;
}
else {
@@ -2181,7 +2181,7 @@ LAB_009b5fbf:
if ((cVar1 != '\0') &&
((iVar3 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x28)))), iVar3 == 0 ||
((0x1d < iVar3 && (iVar3 % 10 == 0)))))) {
local_58[0] = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(this->_playerIdx);
local_58[0] = Game::GetPlayer(g_game,this->_playerIdx);
pvVar5 = (local_58[0]->_history)._historyItems._end;
local_3c = (local_58[0]->_history)._historyItems._begin;
iVar7 = (GHIDRA_INT(pvVar5) - GHIDRA_INT(local_3c)) / 0x1c;
@@ -2213,7 +2213,7 @@ LAB_009b62cb:
}
}
else {
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(this->_playerIdx);
player = Game::GetPlayer(g_game,this->_playerIdx);
bVar2 = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::HasCollectible(GHIDRA_INT(local_3c),1);
if (bVar2 == 0) goto LAB_009b62cb;
local_34 = GHIDRA_CAST<Entity_Player *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_34)) + 0x1))));
@@ -2237,7 +2237,7 @@ LAB_009b62cb:
else {
iVar3 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x28))));
if ((iVar3 == 0) || ((0x1d < iVar3 && (iVar3 % 10 == 0)))) {
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(this->_playerIdx);
player = Game::GetPlayer(g_game,this->_playerIdx);
local_30 = 4;
local_34 = player;
LAB_009b60e4:
@@ -2252,7 +2252,7 @@ LAB_009b60e4:
(&g_manager->_itemConfig,
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(local_38) + iVar3 * 0x1c + 8))),
itemConfig != GHIDRA_CAST<ItemConfig_Item *>(0x0))) {
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(this->_playerIdx);
player = Game::GetPlayer(g_game,this->_playerIdx);
bVar2 = Entity_Player::HasCollectible
(player,*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(local_38) + iVar3 * 0x1c + 8)),1);
if (bVar2 != 0) goto LAB_009b618a;
@@ -2288,7 +2288,7 @@ LAB_009b60e4:
}
LAB_009b6311:
if (g_manager->_netplayManager != *GHIDRA_CAST<int *>((g_manager + 1))) {
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(0);
player = Game::GetPlayer(g_game,0);
bVar2 = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::IsLocalPlayer();
if ((bVar2 != 0) && ((g_manager->_lobbySettings)._password._size != 0)) {
local_58[0] = GHIDRA_CAST<Entity_Player *>(&DAT_0000001d);
@@ -2338,7 +2338,7 @@ LAB_009b6311:
this->_state = 3;
FUN_008d3250();
if (g_manager->_netplayManager == *GHIDRA_CAST<int *>((g_manager + 1))) {
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer((g_game->_pauseScreen)._playerIdx);
player = Game::GetPlayer(g_game,(g_game->_pauseScreen)._playerIdx);
iVar3 = player->_controllerIndex;
}
else {
@@ -2376,9 +2376,9 @@ LAB_009b6311:
AnimationState::SetAnimationData
(GHIDRA_CAST<AnimationState *>(((this->_genericPrompt)._sprite._filename._buf + iVar3 + -0x47c)),
(void *)0x0);
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(0);
player = Game::GetPlayer(g_game,0);
if (player->_dead != 0) {
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(0);
player = Game::GetPlayer(g_game,0);
iVar3 = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::GetExtraLives();
if (iVar3 < 1) {
Game::DeleteSaveState();
@@ -2432,7 +2432,7 @@ switchD_009b63f7_default:
if (((((this->_genericPrompt)._sprite._animState._animData == (void *)0x0) ||
((this->_genericPrompt)._sprite._animState._isPlaying == 0)) && (this->_state == 4)) &&
(iVar3 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_genericPrompt))) + 0x12c)))), this->_state = 1, iVar3 == 1)) {
(GHIDRA_CAST<Game *>((g_game)))->Game::End(1);
Game::End(g_game,1);
}
local_58[0] = GHIDRA_CAST<Entity_Player *>(0x15);
cVar1 = (**(code **)(PTR_vftable_00c57b18 + 0x74))(0xffffffff,FUN_00a20940,local_58,0,0);
@@ -2550,14 +2550,14 @@ void PauseScreen::Render()
iVar2 = 0x170;
render_seed_paper(this,&renderPos);
game = g_game;
bVar1 = (GHIDRA_CAST<Game *>((g_game)))->Game::IsInTimedSet(10);
bVar1 = Game::IsInTimedSet(g_game,10);
if (bVar1 == 0) {
if (this->_menuType == 0) {
render_my_stuff(this,&renderPos);
game = g_game;
}
if (((0 < *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xfa8))))) && (*GHIDRA_CAST<char *>(&game->_seedEffects) == '\0')) &&
(bVar1 = (GHIDRA_CAST<Seeds *>((&game->_seedEffects)))->Seeds::AchievementUnlocksDisallowed(), bVar1 == 0)) {
(bVar1 = Seeds::AchievementUnlocksDisallowed(&game->_seedEffects), bVar1 == 0)) {
spriteOffset = 0x174;
if (this->_menuType != 1) {
spriteOffset = 0x60;
@@ -2664,7 +2664,7 @@ LAB_009b7713:
(menuSprite->_animState)._isPlaying = 1;
}
if (g_manager->_netplayManager == *GHIDRA_CAST<int *>((g_manager + 1))) {
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(this->_playerIdx);
player = Game::GetPlayer(g_game,this->_playerIdx);
}
else {
iVar3 = FUN_0090b070();
@@ -2679,7 +2679,7 @@ LAB_009b77c7:
local_10.x = 2.38221e-44;
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_10));
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(GHIDRA_INT(local_10.x),0.7,2,0,1.0,0.0);
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(this->_playerIdx);
player = Game::GetPlayer(g_game,this->_playerIdx);
statLevel = player->_movespeed * 4.5 - 2.0;
if (statLevel <= 0.0) {
statLevel = 0.0;
@@ -3061,7 +3061,7 @@ void PauseScreen::update_stuff_arrows()
iVar3 = currentPlayer->_menuType;
if (iVar3 == 0) {
pEVar1 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(currentPlayer->_playerIdx);
pEVar1 = Game::GetPlayer(g_game,currentPlayer->_playerIdx);
historyEntry = (pEVar1->_history)._historyItems._end;
historyBegin = (pEVar1->_history)._historyItems._begin;
iVar2 = (GHIDRA_INT(historyEntry) - GHIDRA_INT(historyBegin)) / 0x1c;
@@ -3088,7 +3088,7 @@ LAB_009b8065:
maxScroll = maxScroll + -1;
}
else {
currentPlayer = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(currentPlayer->_playerIdx);
currentPlayer = Game::GetPlayer(g_game,currentPlayer->_playerIdx);
isOwned = (GHIDRA_CAST<Entity_Player *>((currentPlayer)))->Entity_Player::HasCollectible(iVar3,0);
if (isOwned == 0) goto LAB_009b8065;
shownCount = shownCount + 1;
@@ -3412,7 +3412,7 @@ void PauseScreen::render_my_stuff(Vector *pos)
itemScale.y = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pvVar5) + 0x1c));
scaleY = itemScale.y;
scaleX = itemScale.x;
pEVar6 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(this->_playerIdx);
pEVar6 = Game::GetPlayer(g_game,this->_playerIdx);
history = &pEVar6->_history;
local_44 = GHIDRA_CAST<Vector *>(g_vectorZero.x);
slotY = g_vectorZero.y;
@@ -3448,7 +3448,7 @@ void PauseScreen::render_my_stuff(Vector *pos)
}
itemConfig = ItemConfig::GetCollectible(&g_manager->_itemConfig,collectibleId);
if (itemConfig != GHIDRA_CAST<ItemConfig_Item *>(0x0)) {
pEVar6 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(this->_playerIdx);
pEVar6 = Game::GetPlayer(g_game,this->_playerIdx);
bVar1 = (GHIDRA_CAST<Entity_Player *>((pEVar6)))->Entity_Player::HasCollectible(collectibleId,0);
if (bVar1 != 0) {
if (GHIDRA_INT(collectibleId) < 0) {
@@ -3613,7 +3613,7 @@ void PauseScreen::render_lobby_buttons(Vector *pos)
local_1c = ExceptionList;
ExceptionList = &local_1c;
if (g_manager->_netplayManager == *GHIDRA_CAST<int *>((g_manager + 1))) {
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(this->_playerIdx);
player = Game::GetPlayer(g_game,this->_playerIdx);
local_30.y = (float)player->_controllerIndex;
}
else {
@@ -3625,7 +3625,7 @@ LAB_009b8a56:
isShowPassword = '\0';
}
else {
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(0);
player = Game::GetPlayer(g_game,0);
if (((g_manager->_netplayManager != *GHIDRA_CAST<int *>((g_manager + 1))) &&
(bVar1 = NetplayManager::IsIdxLocalPlayer
(GHIDRA_CAST<NetplayManager *>(&g_manager->_netplayManager),player->_controllerIndex),