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:
1 parent
ddf913f304
commit
fd8b965350
110 files changed
+6500
-40129
No files matched your search
@@ -490,7 +490,7 @@ LAB_006a2829:
|
||||
(this->_posOffset).y = 0.0;
|
||||
this->_fallSpeed = fallSpeed * -0.7;
|
||||
uVar6 = Random();
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0xe,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar6);
|
||||
spawned = Game::Spawn(g_game,1000,0xe,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar6);
|
||||
spawned->SetColor(&(bomb->_sprite)._color,0xffffffff,0xff,0,1);
|
||||
spawned->Update();
|
||||
SoundEffects::PlayWithFartOverride(0x96,0.5,2,0,1.0);
|
||||
@@ -697,7 +697,7 @@ LAB_006a2afe:
|
||||
if (GHIDRA_INT((g_game->_playerManager)._playerList._end) -
|
||||
GHIDRA_INT((g_game->_playerManager)._playerList._begin) >> 2 != 0) {
|
||||
do {
|
||||
local_80 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(GHIDRA_UINT(local_84));
|
||||
local_80 = Game::GetPlayer(g_game,GHIDRA_UINT(local_84));
|
||||
if ((local_80 != GHIDRA_CAST<Entity_Player *>(0x0)) &&
|
||||
(fVar15 = (local_80->_pos).y - (this->_pos).y,
|
||||
fVar9 = (local_80->_pos).x - (this->_pos).x,
|
||||
@@ -1035,7 +1035,7 @@ LAB_006a39af:
|
||||
pTVar18 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar17 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar16 = 0;
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x2e,&this->_pos,&g_vectorZero,
|
||||
spawned = Game::Spawn(g_game,1000,0x2e,&this->_pos,&g_vectorZero,
|
||||
GHIDRA_CAST<Entity *>(this->_spawnerEntity),0,uVar6);
|
||||
effect = GHIDRA_CAST<int *>(__RTDynamicCast(spawned,uVar16,pTVar17,pTVar18,uVar19));
|
||||
uVar6 = Random();
|
||||
@@ -1149,7 +1149,7 @@ LAB_006a4412:
|
||||
) * 2.3283064e-10 * 15.0;
|
||||
scratchVec2.x = fVar9 * (float)local_80 + *GHIDRA_CAST<float *>(local_cc.y);
|
||||
scratchVec2.y = fVar9 * local_a4 + (bomb->_pos).y;
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(bomb->_type,GHIDRA_UINT(local_88),&scratchVec2,&scratchVec,spawned,0
|
||||
spawned = Game::Spawn(g_game,bomb->_type,GHIDRA_UINT(local_88),&scratchVec2,&scratchVec,spawned,0
|
||||
,uVar6);
|
||||
spawned = GHIDRA_CAST<Entity *>(__RTDynamicCast(spawned,uVar16,pTVar17,pTVar18,uVar19));
|
||||
*GHIDRA_CAST<uint8_t *>(&spawned[1]._spawnerVariant) = this->_isFetus;
|
||||
@@ -1214,7 +1214,8 @@ LAB_006a4412:
|
||||
local_c0._shift2 = 7;
|
||||
local_c0._shift3 = 0x19;
|
||||
uVar6 = (GHIDRA_CAST<RNG *>((&local_c0)))->RNG::Next();
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0xba,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(spawner),1,uVar6);
|
||||
spawned = Game::Spawn(g_game,1000,0xba,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(spawner),1,uVar6
|
||||
);
|
||||
uVar16 = 0x168;
|
||||
if (this->_isFetus != 0) {
|
||||
uVar16 = 0xb4;
|
||||
@@ -1236,7 +1237,8 @@ LAB_006a4412:
|
||||
local_c0._shift2 = 7;
|
||||
local_c0._shift3 = 0x19;
|
||||
uVar6 = (GHIDRA_CAST<RNG *>((&local_c0)))->RNG::Next();
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0xbd,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(spawner),1,uVar6);
|
||||
spawned = Game::Spawn(g_game,1000,0xbd,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(spawner),1,uVar6
|
||||
);
|
||||
if ((spawned->_sprite)._animState._animData != (void *)0x0) {
|
||||
AnimationState::AdvancePosition
|
||||
(&(spawned->_sprite)._animState,
|
||||
@@ -1270,7 +1272,7 @@ LAB_006a4412:
|
||||
uVar6 = (GHIDRA_CAST<RNG *>((trinketRng)))->RNG::RandomInt(GHIDRA_UINT((10 / (int64_t)stickyTarget)));
|
||||
if (uVar6 == 0) {
|
||||
uVar6 = Random();
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(5,0x28,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),1,uVar6);
|
||||
Game::Spawn(g_game,5,0x28,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),1,uVar6);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1283,7 +1285,7 @@ LAB_006a4412:
|
||||
pTVar18 = &IsaacRepentancePlus::Entity_Bomb::RTTI_Type_Descriptor;
|
||||
pTVar17 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar16 = 0;
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(4,this->_variant,&this->_pos,&this->_velocity,
|
||||
spawned = Game::Spawn(g_game,4,this->_variant,&this->_pos,&this->_velocity,
|
||||
GHIDRA_CAST<Entity *>(this->_spawnerEntity),0,uVar6);
|
||||
stickyTarget = __RTDynamicCast(spawned,uVar16,pTVar17,pTVar18,uVar19);
|
||||
*GHIDRA_CAST<int *>((stickyTarget + 0x34)) = this->_spawnerType;
|
||||
@@ -1326,7 +1328,7 @@ LAB_006a4412:
|
||||
scratchVec2.y = (float)local_ac * local_8c * 5.0;
|
||||
VStack_98.x = this->_size * (float)local_84 * (float)local_ac + (this->_pos).x;
|
||||
VStack_98.y = this->_size * local_8c * (float)local_ac + (this->_pos).y;
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(4,GHIDRA_UINT(local_88),&VStack_98,&scratchVec2,
|
||||
spawned = Game::Spawn(g_game,4,GHIDRA_UINT(local_88),&VStack_98,&scratchVec2,
|
||||
GHIDRA_CAST<Entity *>(this->_spawnerEntity),0,uVar6);
|
||||
stickyTarget = __RTDynamicCast(spawned,uVar16,pTVar17,pTVar18,uVar19);
|
||||
*GHIDRA_CAST<int *>((stickyTarget + 0x34)) = this->_spawnerType;
|
||||
@@ -1374,7 +1376,7 @@ LAB_006a4412:
|
||||
uVar16 = 0;
|
||||
scratchVec.y = this->_size * local_8c + (this->_pos).y;
|
||||
scratchVec.x = this->_size * (float)local_84 + (this->_pos).x;
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(this->_type,GHIDRA_UINT(local_88),&scratchVec,&scratchVec2,
|
||||
spawned = Game::Spawn(g_game,this->_type,GHIDRA_UINT(local_88),&scratchVec,&scratchVec2,
|
||||
GHIDRA_CAST<Entity *>(this->_spawnerEntity),0,uVar6);
|
||||
spawned = GHIDRA_CAST<Entity *>(__RTDynamicCast(spawned,uVar16,pTVar17,pTVar18,uVar19));
|
||||
spawned->_spawnerType = this->_spawnerType;
|
||||
@@ -1480,24 +1482,25 @@ LAB_006a4412:
|
||||
uVar6 = 7;
|
||||
}
|
||||
rngResult = Random();
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(5,0x28,&this->_pos,&this->_velocity,GHIDRA_CAST<Entity *>(0x0),uVar6,rngResult);
|
||||
spawned = Game::Spawn(g_game,5,0x28,&this->_pos,&this->_velocity,GHIDRA_CAST<Entity *>(0x0),uVar6,rngResult
|
||||
);
|
||||
pvVar2 = (spawned->_sprite)._animState._animData;
|
||||
if (pvVar2 != (void *)0x0) {
|
||||
AnimationState::SetFrameFloat
|
||||
(&(spawned->_sprite)._animState,(float)(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar2) + 0x30)) + -8));
|
||||
}
|
||||
uVar6 = Random();
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0xf,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),1,uVar6);
|
||||
Game::Spawn(g_game,1000,0xf,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),1,uVar6);
|
||||
ExceptionList = local_1c;
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (this->_variant == 4) {
|
||||
tmpVecPtr = &this->_pos;
|
||||
pEVar8 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetNearestPlayer(tmpVecPtr);
|
||||
pEVar8 = Game::GetNearestPlayer(g_game,tmpVecPtr);
|
||||
VStack_98.y = (pEVar8->_pos).x;
|
||||
local_cc.y = (pEVar8->_pos).y;
|
||||
pEVar8 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetNearestPlayer(tmpVecPtr);
|
||||
pEVar8 = Game::GetNearestPlayer(g_game,tmpVecPtr);
|
||||
local_a4 = ((pEVar8->_velocity).y * 5.0 + local_cc.y) - (this->_pos).y;
|
||||
local_80 = GHIDRA_CAST<Entity_Player *>((((pEVar8->_velocity).x * 5.0 + VStack_98.y) - tmpVecPtr->x));
|
||||
fVar9 = local_a4 * local_a4 + (float)local_80 * (float)local_80;
|
||||
@@ -1585,7 +1588,7 @@ LAB_006a4412:
|
||||
bVar4 != 0)) {
|
||||
if (this->_variant == 0x11) {
|
||||
(GHIDRA_CAST<SoundEffects *>((&g_manager->_sfxManager)))->SoundEffects::Play(0x28,1.0,4,0,0.8,0.0);
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::ShakeScreen(6);
|
||||
Game::ShakeScreen(g_game,6);
|
||||
}
|
||||
else {
|
||||
fVar9 = this->_scale;
|
||||
@@ -1654,7 +1657,7 @@ LAB_006a4412:
|
||||
VStack_98.x = (this->_pos).x - fVar9 * 5.0 * this->_scale;
|
||||
fVar9 = sin(rocketAngle);
|
||||
VStack_98.y = (this->_pos).y - fVar9 * 5.0 * this->_scale;
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x3b,&VStack_98,&scratchVec2,GHIDRA_CAST<Entity *>(0x0),0,uVar6);
|
||||
spawned = Game::Spawn(g_game,1000,0x3b,&VStack_98,&scratchVec2,GHIDRA_CAST<Entity *>(0x0),0,uVar6);
|
||||
(GHIDRA_CAST<Color *>((&smokeColor)))->Color::Color(1.0,1.0,1.0,0.3);
|
||||
spawned->SetColor(extraout_EAX,0xffffffff,0xff,0,1);
|
||||
uVar6 = Random();
|
||||
|
||||
Reference in new issue
Block a user