Curation round 5: Game construction, FXLayers, PlayerManager, the menus; the main menu renders
Eight agents took over ScoreSheet, DeathmatchManager, giantbook and boss overlays, FXLayers, PlayerManager, the menu manager with the save and prompt flow, twelve menus (character wheel, options, challenges, daily (offline), special seeds, leaderboard (local), collection, bestiary, stats, controller select, key config, cutscenes), console text input and gamepad hot-plug through platform listeners. Integration moved input to device ids. KAGE's projection matrix now reaches the 'ProjectionMatrix' uniform the basic shaders from afterbirthp.a declare, as well as the exe's 'Transform', which takes the color-mod and HQ4X passes from black to correct output. Under gdb with stubs skipped, the intro, title, file select, main menu and character wheel render as in the game. 1330 functions taken over, boot path 261/615. build/isaac stops at OnlineEmotes::init in Game::LoadConfigXmls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fd8b965350
commit
233d5123e8
128 files changed
+10194
-36967
No files matched your search
@@ -364,13 +364,13 @@ void PauseScreen::build_player_user_list()
|
||||
playerIndex = 0;
|
||||
pauseScreen = playerManager;
|
||||
local_14 = userIds;
|
||||
iVar3 = (GHIDRA_CAST<PlayerManager *>((playerManager)))->PlayerManager::count_main_players();
|
||||
iVar3 = PlayerManager::count_main_players(playerManager);
|
||||
if (iVar3 != 0) {
|
||||
do {
|
||||
playerListEnd = (playerManager->_playerList)._end;
|
||||
deviceIter = (playerManager->_playerList)._begin;
|
||||
if (GHIDRA_INT(playerListEnd) - GHIDRA_INT(deviceIter) >> 2 == 0) {
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("(GHIDRA_CAST<PlayerManager *>(()))->PlayerManager::GetPlayer() : There are no players! \n"));
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("PlayerManager::GetPlayer() : There are no players! \n"));
|
||||
playerListEnd = (playerManager->_playerList)._end;
|
||||
deviceIter = (playerManager->_playerList)._begin;
|
||||
}
|
||||
@@ -426,7 +426,7 @@ LAB_008d1a7d:
|
||||
}
|
||||
playerIndex = playerIndex + 1;
|
||||
playerManager = &g_game->_playerManager;
|
||||
uVar5 = (GHIDRA_CAST<PlayerManager *>((playerManager)))->PlayerManager::count_main_players();
|
||||
uVar5 = PlayerManager::count_main_players(playerManager);
|
||||
} while (playerIndex < uVar5);
|
||||
}
|
||||
local_3c = 0;
|
||||
@@ -1651,7 +1651,7 @@ void PauseScreen::constructor()
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_genericPrompt))) + 0x120)))) = 0;
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((this->_genericPrompt))) + 0x124)))) = 0;
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 4;
|
||||
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5b0)))))))->Menu_Options::constructor();
|
||||
Menu_Options::constructor(GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5b0)))));
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x838)))) = 6;
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x83c)))) = 6;
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x840)))) = 0x24;
|
||||
@@ -1763,7 +1763,7 @@ PauseScreen::~PauseScreen()
|
||||
}
|
||||
}
|
||||
(GHIDRA_CAST<PauseScreen_MyStuff *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x838))))))->PauseScreen_MyStuff::~PauseScreen_MyStuff();
|
||||
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5b0)))))))->Menu_Options::~Menu_Options();
|
||||
Menu_Options::~Menu_Options(GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5b0)))));
|
||||
local_8 = 2;
|
||||
ANM2::Reset(&(this->_genericPrompt)._sprite);
|
||||
AnimationState::~AnimationState(&(this->_genericPrompt)._sprite._overlayAnimState);
|
||||
@@ -1833,7 +1833,7 @@ void PauseScreen::Init()
|
||||
optionsPos.x = 0.0;
|
||||
optionsPos.y = 0.0;
|
||||
pauseScreen = deathScreenSprite;
|
||||
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((deathScreenSprite)) + 0x5b0)))))))->Menu_Options::Init(&optionsPos,1);
|
||||
Menu_Options::Init(GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((deathScreenSprite)) + 0x5b0)))),&optionsPos,1);
|
||||
(GHIDRA_CAST<PauseScreen_MyStuff *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((deathScreenSprite)) + 0x838))))))->PauseScreen_MyStuff::Init();
|
||||
CompletionMarks::Load(1);
|
||||
deathScreenSprite->_state = 0;
|
||||
@@ -1998,7 +1998,7 @@ LAB_009b5c01:
|
||||
}
|
||||
}
|
||||
local_14 = 0xffffffff;
|
||||
(GHIDRA_CAST<GenericPrompt *>((&pPVar1->_genericPrompt)))->GenericPrompt::Initialize(1);
|
||||
GenericPrompt::Initialize(&pPVar1->_genericPrompt,1);
|
||||
load_drop_player_menu();
|
||||
ExceptionList = local_1c;
|
||||
return;
|
||||
@@ -2059,7 +2059,7 @@ void PauseScreen::Update()
|
||||
}
|
||||
iVar3 = this->_state;
|
||||
if (iVar3 == 2) {
|
||||
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5b0)))))))->Menu_Options::Update();
|
||||
Menu_Options::Update(GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5b0)))));
|
||||
}
|
||||
else if (iVar3 == 3) {
|
||||
update_items_menu(GHIDRA_CAST<PauseScreen *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x838)))));
|
||||
@@ -2326,7 +2326,7 @@ LAB_009b6311:
|
||||
local_60 = CONCAT44((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_60)) + 0x4))),(uint32_t)local_60);
|
||||
if (*GHIDRA_CAST<int *>(((this->_genericPrompt)._sprite._filename._buf + iVar7 + -0x47c)) != 0) {
|
||||
this->_state = 2;
|
||||
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5b0)))))))->Menu_Options::reload();
|
||||
Menu_Options::reload(GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5b0)))));
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
@@ -2364,7 +2364,7 @@ LAB_009b6311:
|
||||
quitLine1 = string_table_translate(&g_manager->_stringTable,GHIDRA_CAST<uint8_t *>("#QUIT_DAILY_RUN_1"));
|
||||
this = savedThis;
|
||||
FUN_00838230(quitLine1,pbVar4,local_50,local_58[0],0);
|
||||
(GHIDRA_CAST<GenericPrompt *>((&this->_genericPrompt)))->GenericPrompt::Show(0);
|
||||
GenericPrompt::Show(&this->_genericPrompt,0);
|
||||
this->_state = 4;
|
||||
local_60 = CONCAT44((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_60)) + 0x4))),(uint32_t)local_60);
|
||||
break;
|
||||
@@ -2428,7 +2428,7 @@ LAB_009b6686:
|
||||
}
|
||||
}
|
||||
switchD_009b63f7_default:
|
||||
(GHIDRA_CAST<GenericPrompt *>((&this->_genericPrompt)))->GenericPrompt::Update(1);
|
||||
GenericPrompt::Update(&this->_genericPrompt,1);
|
||||
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)) {
|
||||
@@ -2578,7 +2578,7 @@ void PauseScreen::Render()
|
||||
CompletionWidget::Render
|
||||
(GHIDRA_CAST<CompletionWidget *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xe90)))),&local_18,
|
||||
GHIDRA_CAST<Vector *>((widgetNullFrame + 4)));
|
||||
(GHIDRA_CAST<GenericPrompt *>((&this->_genericPrompt)))->GenericPrompt::Render();
|
||||
GenericPrompt::Render(&this->_genericPrompt);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -2586,21 +2586,21 @@ void PauseScreen::Render()
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5b0)))))))->Menu_Options::Render();
|
||||
(GHIDRA_CAST<GenericPrompt *>((&this->_genericPrompt)))->GenericPrompt::Render();
|
||||
Menu_Options::Render(GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5b0)))));
|
||||
GenericPrompt::Render(&this->_genericPrompt);
|
||||
return;
|
||||
case 3:
|
||||
render_items_page();
|
||||
(GHIDRA_CAST<GenericPrompt *>((&this->_genericPrompt)))->GenericPrompt::Render();
|
||||
GenericPrompt::Render(&this->_genericPrompt);
|
||||
return;
|
||||
case 5:
|
||||
InviteFriendsMenu::Render();
|
||||
(GHIDRA_CAST<GenericPrompt *>((&this->_genericPrompt)))->GenericPrompt::Render();
|
||||
GenericPrompt::Render(&this->_genericPrompt);
|
||||
return;
|
||||
case 6:
|
||||
kick_player_menu_render();
|
||||
}
|
||||
(GHIDRA_CAST<GenericPrompt *>((&this->_genericPrompt)))->GenericPrompt::Render();
|
||||
GenericPrompt::Render(&this->_genericPrompt);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -2625,7 +2625,7 @@ void PauseScreen::Show()
|
||||
|
||||
local_10.x = 0.0;
|
||||
local_10.y = 0.0;
|
||||
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5b0)))))))->Menu_Options::Init(&local_10,1);
|
||||
Menu_Options::Init(GHIDRA_CAST<Menu_Options *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5b0)))),&local_10,1);
|
||||
manager = g_manager;
|
||||
this->_menuType = 1;
|
||||
this->_playerIdx = 0;
|
||||
@@ -2881,7 +2881,7 @@ void PauseScreen::load_graphics()
|
||||
}
|
||||
operator_delete(pcVar2,uVar3);
|
||||
}
|
||||
(GHIDRA_CAST<GenericPrompt *>((GHIDRA_CAST<GenericPrompt *>((in_ECX + 0x47c)))))->GenericPrompt::Initialize(1);
|
||||
GenericPrompt::Initialize(GHIDRA_CAST<GenericPrompt *>((in_ECX + 0x47c)),1);
|
||||
diarySprite = GHIDRA_CAST<ANM2 *>((in_ECX + 0x368));
|
||||
anm2Path._size = 0;
|
||||
anm2Path._capacity = 0xf;
|
||||
@@ -2964,7 +2964,7 @@ LAB_009b7d67:
|
||||
}
|
||||
}
|
||||
local_14 = 0xffffffff;
|
||||
(GHIDRA_CAST<Menu_Options *>((GHIDRA_CAST<Menu_Options *>((temp_3f06a66df3 + 0x5b0)))))->Menu_Options::load_menu_anm2();
|
||||
Menu_Options::load_menu_anm2(GHIDRA_CAST<Menu_Options *>((temp_3f06a66df3 + 0x5b0)));
|
||||
diarySprite = GHIDRA_CAST<ANM2 *>((temp_3f06a66df3 + 0xc50));
|
||||
deathScreenPath._size = 0;
|
||||
deathScreenPath._capacity = 0xf;
|
||||
|
||||
Reference in new issue
Block a user