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
+76
-76
@@ -142,7 +142,7 @@ uint32_t Level::GetStageID()
|
||||
if (iVar1 == 0x2d) {
|
||||
return 0x1c;
|
||||
}
|
||||
stageId = (GHIDRA_CAST<Game *>((g_game)))->Game::GetStageID((uint8_t)g_game);
|
||||
stageId = Game::GetStageID(g_game,(uint8_t)g_game);
|
||||
if ((stageId == 0x1a) &&
|
||||
(roomStageId = **GHIDRA_CAST<uint32_t **>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x10)), roomStageId != 0)) {
|
||||
return roomStageId;
|
||||
@@ -314,7 +314,7 @@ uint8_t Level::place_room(void *slot, void *data, uint32_t seed, void *unused, R
|
||||
desc = this->_roomList + this->_roomCount;
|
||||
rng._seed = seed;
|
||||
rng._shift3 = 9;
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(desc))))->Seeds::Init3(&rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(desc),&rng);
|
||||
desc->Data = data;
|
||||
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(slot) + 8)) < 0xd) && (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(slot) + 0xc)) < 0xd)) {
|
||||
iVar6 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(slot) + 0xc)) * 0xd + *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(slot) + 8));
|
||||
@@ -406,7 +406,7 @@ LAB_00738cb6:
|
||||
LAB_00738d12:
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("[Level] place_room: invalid room pos/size\n"));
|
||||
}
|
||||
piVar5 = (GHIDRA_CAST<Game *>((GHIDRA_CAST<Game *>(this))))->Game::GetRoomDescriptorsOffsetsArrayForDimension(dimension);
|
||||
piVar5 = Game::GetRoomDescriptorsOffsetsArrayForDimension(GHIDRA_CAST<Game *>(this),dimension);
|
||||
iVar6 = iVar6 + 8;
|
||||
piVar5[iVar8] = (GHIDRA_CAST<RNG *>(&desc->ListIndex))->_seed;
|
||||
} while( true );
|
||||
@@ -606,7 +606,7 @@ void * Level::pick_boss_room_config(int bossId, uint32_t seed)
|
||||
if (uVar3 == 0) {
|
||||
if ((bossId == 0x59) && ((g_game->_gameStateFlags & 0x800000000000) != 0)) {
|
||||
local_14[0] = 0;
|
||||
uVar3 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetStageID((uint8_t)g_game);
|
||||
uVar3 = Game::GetStageID(g_game,(uint8_t)g_game);
|
||||
uVar4 = (GHIDRA_CAST<RNG *>((&rng)))->RNG::Next();
|
||||
pvVar2 = RoomConfig::GetRandomRoomWithFallbackStage
|
||||
(roomConfig,uVar4,1,uVar3,0x1f,5,0xd,in_stack_ffffffb0,in_stack_ffffffb4,1,
|
||||
@@ -1204,14 +1204,14 @@ LAB_0073e556:
|
||||
local_90 = GHIDRA_CAST<int *>((uVar9 >> 0x10 ^ uVar9));
|
||||
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((roomData)) + 0x10)))) == 0) {
|
||||
iVar4 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((roomData)) + 0x48))));
|
||||
uVar9 = (GHIDRA_CAST<Game *>((level)))->Game::GetStageID((uint8_t)roomData);
|
||||
uVar9 = Game::GetStageID(level,(uint8_t)roomData);
|
||||
uVar8 = 1;
|
||||
roomShape = extraout_ECX;
|
||||
}
|
||||
else {
|
||||
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((roomData)) + 0x10)))) != 2) goto LAB_0073e495;
|
||||
iVar4 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((roomData)) + 0x48))));
|
||||
uVar9 = (GHIDRA_CAST<Game *>((level)))->Game::GetStageID((uint8_t)roomData);
|
||||
uVar9 = Game::GetStageID(level,(uint8_t)roomData);
|
||||
uVar8 = 3;
|
||||
roomShape = extraout_ECX_00;
|
||||
}
|
||||
@@ -1587,7 +1587,7 @@ LAB_0073ee35:
|
||||
* 2.3283062e-10 - 0.5) * (float)local_94 * 40.0;
|
||||
spawnPos.x = perpX * fVar11 + rowX;
|
||||
spawnPos.y = local_a0 + fVar11 * perpY;
|
||||
local_a8 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,7,&spawnPos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,
|
||||
local_a8 = Game::Spawn(g_game,1000,7,&spawnPos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,
|
||||
GHIDRA_UINT(local_a8));
|
||||
if (uVar9 == 0) {
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
|
||||
@@ -2459,7 +2459,7 @@ LAB_00740722:
|
||||
(GHIDRA_CAST<GridEntity_Door *>((this_00)))->GridEntity_Door::UpdateAnimation();
|
||||
}
|
||||
LAB_0074080d:
|
||||
(GHIDRA_CAST<Game *>((GHIDRA_CAST<Game *>(this))))->Game::UpdateVisibility();
|
||||
Game::UpdateVisibility(GHIDRA_CAST<Game *>(this));
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
@@ -2506,7 +2506,7 @@ int Level::GetRandomRoomIndex(uint8_t IAmErrorRoom, uint32_t Seed)
|
||||
uVar3 = 0;
|
||||
candidatesCursor = candidatesEnd;
|
||||
do {
|
||||
roomOffsets = (GHIDRA_CAST<Game *>((GHIDRA_CAST<Game *>(this))))->Game::GetRoomDescriptorsOffsetsArrayForDimension(-1);
|
||||
roomOffsets = Game::GetRoomDescriptorsOffsetsArrayForDimension(GHIDRA_CAST<Game *>(this),-1);
|
||||
iVar2 = roomOffsets[uVar3];
|
||||
if ((((-1 < iVar2) &&
|
||||
(currentRoomDesc = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this->_room) + 4)), iVar2 != *GHIDRA_CAST<int *>((currentRoomDesc + 8))))
|
||||
@@ -4131,7 +4131,7 @@ void Level::generate_greed()
|
||||
if (GHIDRA_UINT(rng->_currentDimensionIdx) < 3) {
|
||||
roomDesc = rng->_roomList + 0x1fc;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),rng);
|
||||
uVar3 = rng->_seed;
|
||||
pRStack_3b0 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (uVar3 == 0) {
|
||||
@@ -4179,7 +4179,7 @@ void Level::generate_greed()
|
||||
if (GHIDRA_UINT(rng->_currentDimensionIdx) < 3) {
|
||||
roomDesc = rng->_roomList + 0x200;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),rng);
|
||||
uVar3 = rng->_seed;
|
||||
pRStack_3b0 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (uVar3 == 0) {
|
||||
@@ -4227,7 +4227,7 @@ void Level::generate_greed()
|
||||
if (GHIDRA_UINT(rng->_currentDimensionIdx) < 3) {
|
||||
roomDesc = rng->_roomList + 0x1fe;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),rng);
|
||||
uVar3 = rng->_seed;
|
||||
pRStack_3b0 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (uVar3 == 0) {
|
||||
@@ -4328,7 +4328,7 @@ void Level::generate_greed()
|
||||
if (GHIDRA_UINT(rng->_currentDimensionIdx) < 3) {
|
||||
roomDesc = rng->_roomList + 0x207;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),rng);
|
||||
uVar3 = rng->_seed;
|
||||
pRStack_3c8 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (uVar3 == 0) {
|
||||
@@ -4386,7 +4386,7 @@ void Level::generate_greed()
|
||||
if (GHIDRA_UINT(rng->_currentDimensionIdx) < 3) {
|
||||
roomDesc = rng->_roomList + 0x20c;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),rng);
|
||||
uVar3 = rng->_seed;
|
||||
pRStack_3b0 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (uVar3 == 0) {
|
||||
@@ -4781,7 +4781,7 @@ void Level::generate_greed_chunk_rooms()
|
||||
if (GHIDRA_UINT(unaff_EBX->_currentDimensionIdx) < 3) {
|
||||
roomDesc = unaff_EBX->_roomList + 0x1fc;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(unaff_ESI);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),unaff_ESI);
|
||||
uVar3 = unaff_ESI->_seed;
|
||||
*GHIDRA_CAST<uint32_t *>((unaff_EBP + -0x3ac)) = 0;
|
||||
if (uVar3 == 0) {
|
||||
@@ -4832,7 +4832,7 @@ void Level::generate_greed_chunk_rooms()
|
||||
if (GHIDRA_UINT(unaff_EBX->_currentDimensionIdx) < 3) {
|
||||
roomDesc = unaff_EBX->_roomList + 0x200;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(unaff_ESI);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),unaff_ESI);
|
||||
uVar3 = unaff_ESI->_seed;
|
||||
*GHIDRA_CAST<uint32_t *>((unaff_EBP + -0x3ac)) = 0;
|
||||
if (uVar3 == 0) {
|
||||
@@ -4883,7 +4883,7 @@ void Level::generate_greed_chunk_rooms()
|
||||
if (GHIDRA_UINT(unaff_EBX->_currentDimensionIdx) < 3) {
|
||||
roomDesc = unaff_EBX->_roomList + 0x1fe;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(unaff_ESI);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),unaff_ESI);
|
||||
uVar3 = unaff_ESI->_seed;
|
||||
*GHIDRA_CAST<uint32_t *>((unaff_EBP + -0x3ac)) = 0;
|
||||
if (uVar3 == 0) {
|
||||
@@ -4998,7 +4998,7 @@ void Level::generate_greed_chunk_rooms()
|
||||
if (GHIDRA_UINT(unaff_EBX->_currentDimensionIdx) < 3) {
|
||||
roomDesc = unaff_EBX->_roomList + 0x207;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(unaff_ESI);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),unaff_ESI);
|
||||
uVar3 = unaff_ESI->_seed;
|
||||
*GHIDRA_CAST<uint32_t *>((unaff_EBP + -0x3c4)) = 0;
|
||||
if (uVar3 == 0) {
|
||||
@@ -5060,7 +5060,7 @@ void Level::generate_greed_chunk_rooms()
|
||||
if (GHIDRA_UINT(unaff_EBX->_currentDimensionIdx) < 3) {
|
||||
roomDesc = unaff_EBX->_roomList + 0x20c;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(unaff_ESI);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),unaff_ESI);
|
||||
uVar3 = unaff_ESI->_seed;
|
||||
*GHIDRA_CAST<uint32_t *>((unaff_EBP + -0x3ac)) = 0;
|
||||
if (uVar3 == 0) {
|
||||
@@ -5145,7 +5145,7 @@ void Level::generate_greed_chunk_place()
|
||||
if (GHIDRA_UINT(unaff_EBX->_currentDimensionIdx) < 3) {
|
||||
roomDesc = unaff_EBX->_roomList + 0x1fc;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(unaff_ESI);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),unaff_ESI);
|
||||
seed = unaff_ESI->_seed;
|
||||
*GHIDRA_CAST<uint32_t *>((unaff_EBP + -0x3ac)) = 0;
|
||||
if (seed == 0) {
|
||||
@@ -5196,7 +5196,7 @@ void Level::generate_greed_chunk_place()
|
||||
if (GHIDRA_UINT(unaff_EBX->_currentDimensionIdx) < 3) {
|
||||
roomDesc = unaff_EBX->_roomList + 0x200;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(unaff_ESI);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),unaff_ESI);
|
||||
seed = unaff_ESI->_seed;
|
||||
*GHIDRA_CAST<uint32_t *>((unaff_EBP + -0x3ac)) = 0;
|
||||
if (seed == 0) {
|
||||
@@ -5247,7 +5247,7 @@ void Level::generate_greed_chunk_place()
|
||||
if (GHIDRA_UINT(unaff_EBX->_currentDimensionIdx) < 3) {
|
||||
roomDesc = unaff_EBX->_roomList + 0x1fe;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(unaff_ESI);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),unaff_ESI);
|
||||
seed = unaff_ESI->_seed;
|
||||
*GHIDRA_CAST<uint32_t *>((unaff_EBP + -0x3ac)) = 0;
|
||||
if (seed == 0) {
|
||||
@@ -5362,7 +5362,7 @@ void Level::generate_greed_chunk_place()
|
||||
if (GHIDRA_UINT(unaff_EBX->_currentDimensionIdx) < 3) {
|
||||
roomDesc = unaff_EBX->_roomList + 0x207;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(unaff_ESI);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),unaff_ESI);
|
||||
seed = unaff_ESI->_seed;
|
||||
*GHIDRA_CAST<uint32_t *>((unaff_EBP + -0x3c4)) = 0;
|
||||
if (seed == 0) {
|
||||
@@ -5425,7 +5425,7 @@ void Level::generate_greed_chunk_place()
|
||||
if (GHIDRA_UINT(unaff_EBX->_currentDimensionIdx) < 3) {
|
||||
roomDesc = unaff_EBX->_roomList + 0x20c;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(unaff_ESI);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),unaff_ESI);
|
||||
seed = unaff_ESI->_seed;
|
||||
*GHIDRA_CAST<uint32_t *>((unaff_EBP + -0x3ac)) = 0;
|
||||
if (seed == 0) {
|
||||
@@ -5772,7 +5772,7 @@ LAB_00744ea8:
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
bVar2 = (GHIDRA_CAST<Game *>((g_game)))->Game::IsGreedMode();
|
||||
bVar2 = Game::IsGreedMode(g_game);
|
||||
if ((bVar2 == 0) && (game->_challenge != 0x2c)) {
|
||||
(GHIDRA_CAST<Game *>(newSaveState))->_curses = (GHIDRA_CAST<Game *>(newSaveState))->_curses | 4;
|
||||
curseMessage = "Curse of the Lost!\n";
|
||||
@@ -5790,7 +5790,7 @@ LAB_00744ffb:
|
||||
KAGE_LogMessage(1,GHIDRA_CAST<uint8_t *>(curseMessage));
|
||||
break;
|
||||
case 4:
|
||||
bVar2 = (GHIDRA_CAST<Game *>((g_game)))->Game::IsGreedMode();
|
||||
bVar2 = Game::IsGreedMode(g_game);
|
||||
if (bVar2 == 0) {
|
||||
(GHIDRA_CAST<Game *>(newSaveState))->_curses = (GHIDRA_CAST<Game *>(newSaveState))->_curses | 0x20;
|
||||
curseMessage = "Curse of Maze\n";
|
||||
@@ -5985,7 +5985,7 @@ LAB_0074536a:
|
||||
else {
|
||||
iVar5 = level->_stage;
|
||||
if (iVar5 == 0xd) {
|
||||
(GHIDRA_CAST<Game *>((level)))->Game::generate_home_level();
|
||||
Game::generate_home_level(level);
|
||||
}
|
||||
else if ((iVar5 < 7) && ((game->_gameStateFlags & 0x1000000000000) != 0)) {
|
||||
generate_backwards(GHIDRA_CAST<Level *>(level));
|
||||
@@ -6127,7 +6127,7 @@ LAB_0074536a:
|
||||
currentLevel->_currentRoomIdx = iVar5;
|
||||
currentLevel->_lastRoomIdx = iVar5;
|
||||
if ((currentLevel->_stage - 1U < 6) &&
|
||||
(bVar2 = (GHIDRA_CAST<Game *>((GHIDRA_CAST<Game *>(&game->_gameStateFlags))))->Game::GetGameStateFlag(0x30), bVar2 != 0)) {
|
||||
(bVar2 = Game::GetGameStateFlag(GHIDRA_CAST<Game *>(&game->_gameStateFlags),0x30), bVar2 != 0)) {
|
||||
iVar5 = currentLevel->_roomList[currentLevel->_lastBossRoomListIdx].SafeGridIndex;
|
||||
currentLevel->_dungeonReturnRoomIndex = iVar5;
|
||||
currentLevel->_currentRoomIdx = iVar5;
|
||||
@@ -6146,23 +6146,23 @@ LAB_0074536a:
|
||||
}
|
||||
(GHIDRA_CAST<Room *>((g_game->_room)))->Room::PlayMusic();
|
||||
if ((g_game->_challenge != 0x1f) || (currentLevel->_stage == 0xb)) {
|
||||
(GHIDRA_CAST<Game *>((currentLevel)))->Game::UpdateVisibility();
|
||||
Game::UpdateVisibility(currentLevel);
|
||||
}
|
||||
game = g_game;
|
||||
if (g_game->_stage == 0xb) {
|
||||
challengeParams = (GHIDRA_CAST<Game *>((g_game)))->Game::GetChallengeParams();
|
||||
challengeParams = Game::GetChallengeParams(g_game);
|
||||
if ((challengeParams->_isMegaSatan != 0) && (game->_challenge != 0x1f)) {
|
||||
player = PlayerManager::FirstCollectibleOwner
|
||||
(&game->_playerManager,0xee,GHIDRA_CAST<RNG **>(&game->_playerManager),1);
|
||||
if (player == GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(0);
|
||||
player = Game::GetPlayer(g_game,0);
|
||||
Entity_Player::AddCollectible(player,0xee,0,1,0,0,0);
|
||||
ItemPool::RemoveCollectible(&g_game->_itemPool,0xee,0,0);
|
||||
}
|
||||
player = PlayerManager::FirstCollectibleOwner
|
||||
(&g_game->_playerManager,0xef,GHIDRA_CAST<RNG **>(&g_game->_playerManager),1);
|
||||
if (player == GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(0);
|
||||
player = Game::GetPlayer(g_game,0);
|
||||
Entity_Player::AddCollectible(player,0xef,0,1,0,0,0);
|
||||
ItemPool::RemoveCollectible(&g_game->_itemPool,0xef,0,0);
|
||||
}
|
||||
@@ -6170,7 +6170,7 @@ LAB_0074536a:
|
||||
}
|
||||
}
|
||||
if (5 < currentLevel->_stage - 1U) goto LAB_00745a11;
|
||||
bVar2 = (GHIDRA_CAST<Game *>((GHIDRA_CAST<Game *>(&game->_gameStateFlags))))->Game::GetGameStateFlag(0x30);
|
||||
bVar2 = Game::GetGameStateFlag(GHIDRA_CAST<Game *>(&game->_gameStateFlags),0x30);
|
||||
if (bVar2 == 0) goto LAB_00745a11;
|
||||
uVar4 = game->_debugCurses;
|
||||
uVar6 = currentLevel->_curses;
|
||||
@@ -6824,7 +6824,7 @@ void Level::SetNextStage()
|
||||
if ((g_game->_difficulty != 2) && (g_game->_difficulty != 3)) {
|
||||
if (nextStage == 0xd) goto LAB_0074706a;
|
||||
if ((((g_game->_challenge == 0) && ((g_game->_dailyChallenge)._id == 0)) ||
|
||||
(challengeParams = (GHIDRA_CAST<Game *>((g_game)))->Game::GetChallengeParams(), challengeParams->_pathType != 2)) ||
|
||||
(challengeParams = Game::GetChallengeParams(g_game), challengeParams->_pathType != 2)) ||
|
||||
(isChapter2End = true, game->_challenge == 0x2c)) {
|
||||
isChapter2End = false;
|
||||
}
|
||||
@@ -6896,7 +6896,7 @@ void Level::SetNextStage()
|
||||
(bVar1 = IsAscent(GHIDRA_CAST<Level *>(g_game)), bVar1 == 0)) {
|
||||
nextStage = nextStage + 1;
|
||||
}
|
||||
flagsHigh = (GHIDRA_CAST<Seeds *>((&game->_seedEffects)))->Seeds::GetStageSeed(nextStage);
|
||||
flagsHigh = Seeds::GetStageSeed(&game->_seedEffects,nextStage);
|
||||
game = g_game;
|
||||
if (((flagsHigh & 1) == 0) &&
|
||||
((((nextStage == 1 || (nextStage == 2)) &&
|
||||
@@ -6936,7 +6936,7 @@ void Level::SetNextStage()
|
||||
(((g_game->_dailyChallenge)._id != 0 || (g_game->_isDebug != 0)))))))))))) {
|
||||
nextStageType = 2;
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<Seeds *>((&g_game->_seedEffects)))->Seeds::HasSeedEffect(0x4f);
|
||||
bVar1 = Seeds::HasSeedEffect(&g_game->_seedEffects,0x4f);
|
||||
if ((bVar1 != 0) && ((nextStage == 3 || (nextStage == 4)))) {
|
||||
nextStageType = 2;
|
||||
}
|
||||
@@ -6964,7 +6964,7 @@ LAB_00746f09:
|
||||
nextStage = 1;
|
||||
}
|
||||
}
|
||||
flagsHigh = (GHIDRA_CAST<Seeds *>((&g_game->_seedEffects)))->Seeds::GetStageSeed(nextStage + 1);
|
||||
flagsHigh = Seeds::GetStageSeed(&g_game->_seedEffects,nextStage + 1);
|
||||
game = g_game;
|
||||
if (((flagsHigh & 2) == 0) &&
|
||||
(((((nextStage == 1 || (nextStage == 2)) &&
|
||||
@@ -7000,7 +7000,7 @@ LAB_00746f09:
|
||||
SetStage(this,0xc,0);
|
||||
return;
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<Game *>((game)))->Game::GetStateFlag(0x13);
|
||||
bVar1 = Game::GetStateFlag(game,0x13);
|
||||
flagsHigh = 0;
|
||||
if (game->_challenge != 0x1f) {
|
||||
flagsHigh = GHIDRA_UINT(bVar1);
|
||||
@@ -7460,7 +7460,7 @@ void Level::RestoreGameState(GameState *gameState)
|
||||
roomDesc = GetRoomByIdx(GHIDRA_CAST<Level *>(g_game),g_game->_startingRoomIdx,-1);
|
||||
game = g_game;
|
||||
roomDesc->Flags = roomDesc->Flags & 0xfffffffe;
|
||||
(GHIDRA_CAST<Game *>((game)))->Game::UpdateVisibility();
|
||||
Game::UpdateVisibility(game);
|
||||
game = g_game;
|
||||
}
|
||||
else {
|
||||
@@ -7546,7 +7546,7 @@ void Level::RestoreGameState(GameState *gameState)
|
||||
VStack_10.y = VStack_10.y - 100.0;
|
||||
}
|
||||
portalBit = Random();
|
||||
mothersShadow = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(0x363,0,&VStack_10,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,portalBit,0);
|
||||
mothersShadow = Game::SpawnEx(g_game,0x363,0,&VStack_10,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,portalBit,0);
|
||||
mothersShadow->Update();
|
||||
}
|
||||
LAB_00747d60:
|
||||
@@ -8059,7 +8059,7 @@ uint8_t Level::CanOpenChallengeRoom(int roomIdx)
|
||||
}
|
||||
do {
|
||||
if (!isAllLowHealth) goto LAB_00748822;
|
||||
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(Index);
|
||||
player = Game::GetPlayer(g_game,Index);
|
||||
if ((player->_variant == 0) && (2 < player->_soulHearts + player->_redHearts)) {
|
||||
isAllLowHealth = false;
|
||||
}
|
||||
@@ -9176,7 +9176,7 @@ LAB_00749b89:
|
||||
if (GHIDRA_UINT(this->_currentDimensionIdx) < 3) {
|
||||
devilRoomDesc = this->_roomList + 0x1fb;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(devilRoomDesc))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(devilRoomDesc),rng);
|
||||
iVar5 = 10;
|
||||
do {
|
||||
if (iVar5 < 1) break;
|
||||
@@ -9756,7 +9756,7 @@ void Level::generate_home()
|
||||
if (GHIDRA_UINT(roomConfig->_currentDimensionIdx) < 3) {
|
||||
specialRoom = roomConfig->_roomList + 0x1fc;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(specialRoom))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(specialRoom),rng);
|
||||
seed = rng->_seed;
|
||||
local_3b4 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (seed == 0) {
|
||||
@@ -9800,7 +9800,7 @@ void Level::generate_home()
|
||||
if (GHIDRA_UINT(roomConfig->_currentDimensionIdx) < 3) {
|
||||
specialRoom = roomConfig->_roomList + 0x200;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(specialRoom))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(specialRoom),rng);
|
||||
seed = rng->_seed;
|
||||
local_3b4 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (seed == 0) {
|
||||
@@ -9844,7 +9844,7 @@ void Level::generate_home()
|
||||
if (GHIDRA_UINT(roomConfig->_currentDimensionIdx) < 3) {
|
||||
specialRoom = roomConfig->_roomList + 0x1fe;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(specialRoom))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(specialRoom),rng);
|
||||
seed = rng->_seed;
|
||||
local_3b4 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (seed == 0) {
|
||||
@@ -9888,7 +9888,7 @@ void Level::generate_home()
|
||||
if (GHIDRA_UINT(roomConfig->_currentDimensionIdx) < 3) {
|
||||
specialRoom = roomConfig->_roomList + 0x201;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(specialRoom))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(specialRoom),rng);
|
||||
seed = rng->_seed;
|
||||
local_3b4 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (seed == 0) {
|
||||
@@ -9932,7 +9932,7 @@ void Level::generate_home()
|
||||
if (GHIDRA_UINT(roomConfig->_currentDimensionIdx) < 3) {
|
||||
specialRoom = roomConfig->_roomList + 0x203;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(specialRoom))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(specialRoom),rng);
|
||||
seed = rng->_seed;
|
||||
local_3b4 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (seed == 0) {
|
||||
@@ -10031,7 +10031,7 @@ void Level::generate_home()
|
||||
if (GHIDRA_UINT(roomConfig->_currentDimensionIdx) < 3) {
|
||||
specialRoom = roomConfig->_roomList + 0x207;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(specialRoom))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(specialRoom),rng);
|
||||
nextSeed = rng->_seed;
|
||||
local_3b4 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (nextSeed == 0) {
|
||||
@@ -10088,7 +10088,7 @@ void Level::generate_home()
|
||||
if (GHIDRA_UINT(roomConfig->_currentDimensionIdx) < 3) {
|
||||
specialRoom = roomConfig->_roomList + 0x20c;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(specialRoom))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(specialRoom),rng);
|
||||
seed = rng->_seed;
|
||||
local_3b4 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (seed == 0) {
|
||||
@@ -10168,7 +10168,7 @@ uint8_t Level::CanSpawnTrapDoor()
|
||||
}
|
||||
game = g_game;
|
||||
if (((5 < this->_stage - 1U) || ((g_game->_gameStateFlags & 0x1000000000000) == 0)) &&
|
||||
((challengeParams = (GHIDRA_CAST<Game *>((g_game)))->Game::GetChallengeParams(), challengeParams->_pathType != 2 ||
|
||||
((challengeParams = Game::GetChallengeParams(g_game), challengeParams->_pathType != 2 ||
|
||||
((((this->_stageType == 4 || (this->_stageType == 5)) &&
|
||||
((stage == 1 || (((stage == 3 || (stage == 5)) || (stage == 7)))))) ||
|
||||
((this->_currentRoomIndex == -10 || (game->_challenge == 0x2c)))))))) {
|
||||
@@ -10233,7 +10233,7 @@ LAB_0074b760:
|
||||
if (stage == 0xd) {
|
||||
return 0;
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<Game *>((g_game)))->Game::IsGreedMode();
|
||||
bVar1 = Game::IsGreedMode(g_game);
|
||||
if ((bVar1 != 0) && (stage == 7)) {
|
||||
return 0;
|
||||
}
|
||||
@@ -10244,13 +10244,13 @@ LAB_0074b760:
|
||||
if ((stage == 8) && (bVar1 = IsAltPath(this), bVar1 != 0)) {
|
||||
return 0;
|
||||
}
|
||||
challengeParams = (GHIDRA_CAST<Game *>((game)))->Game::GetChallengeParams();
|
||||
challengeParams = Game::GetChallengeParams(game);
|
||||
if ((((stage == 6) ||
|
||||
((stage == 5 && (uVar2 = filter_curses(GHIDRA_CAST<Level *>(game),2), game = g_game, uVar2 != 0)))) &&
|
||||
(challengeParams->_pathType == 3)) && (bVar1 = (GHIDRA_CAST<Game *>((game)))->Game::GetStateFlag(0x30), bVar1 == 0)) {
|
||||
(challengeParams->_pathType == 3)) && (bVar1 = Game::GetStateFlag(game,0x30), bVar1 == 0)) {
|
||||
return 0;
|
||||
}
|
||||
isChallengeOrDaily = (GHIDRA_CAST<Game *>((game)))->Game::IsChallengeOrDaily();
|
||||
isChallengeOrDaily = Game::IsChallengeOrDaily(game);
|
||||
if ((isChallengeOrDaily == '\0') || (GHIDRA_INT(stage) < challengeParams->_endStage)) {
|
||||
return 1;
|
||||
}
|
||||
@@ -10271,7 +10271,7 @@ uint8_t Level::IsStageWithinEnd(int stage, uint8_t isAltPath)
|
||||
if ((g_game->_difficulty == 2) || (g_game->_difficulty == 3)) {
|
||||
return stage < 8;
|
||||
}
|
||||
challengeParams = (GHIDRA_CAST<Game *>((g_game)))->Game::GetChallengeParams();
|
||||
challengeParams = Game::GetChallengeParams(g_game);
|
||||
stage = 0xc;
|
||||
if ((challengeParams->_endStage != 0xc) &&
|
||||
(((game->_challenge != 0 || ((game->_dailyChallenge)._id != 0)) ||
|
||||
@@ -10469,7 +10469,7 @@ RoomDescriptor * Level::get_secret_exit_room(int kind)
|
||||
}
|
||||
if (descriptor->Data == (void *)0x0) {
|
||||
rng = &this->_devilAngelRoomRNG;
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(descriptor))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(descriptor),rng);
|
||||
game = g_game;
|
||||
if (kind == 4) {
|
||||
kind = 0;
|
||||
@@ -10562,7 +10562,7 @@ void Level::init_rotgut_dungeon_room()
|
||||
roomDesc = this->_roomList + 0x208;
|
||||
}
|
||||
if (roomDesc->Data == (void *)0x0) {
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(&firstRoomRng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),&firstRoomRng);
|
||||
local_18 = &g_game->_roomConfig;
|
||||
local_14 = 0;
|
||||
if (firstRoomRng._seed == 0) {
|
||||
@@ -10595,7 +10595,7 @@ void Level::init_rotgut_dungeon_room()
|
||||
roomDesc = &g_roomDescriptorDummy;
|
||||
}
|
||||
if (roomDesc->Data == (void *)0x0) {
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(roomDesc))))->Seeds::Init3(&secondRoomRng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(roomDesc),&secondRoomRng);
|
||||
local_18 = GHIDRA_CAST<RoomConfig *>(0x0);
|
||||
if (secondRoomRng._seed == 0) {
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
|
||||
@@ -11311,7 +11311,7 @@ LAB_0074d2bb:
|
||||
}
|
||||
else {
|
||||
iVar4 = roll_red_room_type(neighborSlot);
|
||||
local_60 = GHIDRA_CAST<RoomDescriptor *>((GHIDRA_CAST<Game *>((GHIDRA_CAST<Game *>(this))))->Game)::GetStageID(unused);
|
||||
local_60 = GHIDRA_CAST<RoomDescriptor *>(Game)::GetStageID(GHIDRA_CAST<Game *>(this),unused);
|
||||
if (g_game->_challenge == 0x2c) {
|
||||
neighborSlot = GetRoomStageType(this,neighborY * 0xd + neighborX);
|
||||
local_60 = GHIDRA_CAST<RoomDescriptor *>(RoomConfig)::GetStageID(this->_stage,neighborSlot,-1);
|
||||
@@ -11407,7 +11407,7 @@ LAB_0074d412:
|
||||
if (sourceRoom == *GHIDRA_CAST<RoomDescriptor **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Game *>(this))->_room)) + 0x4))))) {
|
||||
(GHIDRA_CAST<Room *>(((GHIDRA_CAST<Game *>(this))->_room)))->Room::open_red_room_doors(slot,pRVar3);
|
||||
}
|
||||
(GHIDRA_CAST<Game *>((GHIDRA_CAST<Game *>(this))))->Game::UpdateVisibility();
|
||||
Game::UpdateVisibility(GHIDRA_CAST<Game *>(this));
|
||||
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
|
||||
(local_2c,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)local_2c,
|
||||
*(_Tree_node<unsigned_int,void*> **)(GHIDRA_INT(local_2c[0]) + 4));
|
||||
@@ -11484,7 +11484,7 @@ LAB_0074d6f3:
|
||||
(GHIDRA_CAST<RoomDescriptor *>((&freshDesc)))->RoomDescriptor::destructor();
|
||||
blueRoom->ListIndex = iVar5;
|
||||
blueRoom->GridIndex = -0x10;
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(blueRoom))))->Seeds::Init3(&rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(blueRoom),&rng);
|
||||
if ((direction == 0) || (direction == 2)) {
|
||||
if (rng._seed == 0) {
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
|
||||
@@ -11589,7 +11589,7 @@ uint8_t Level::TryInitializeExtraBossRoom(uint32_t seed)
|
||||
rng._shift3 = 6;
|
||||
rng._shift1 = 1;
|
||||
rng._shift2 = 0xb;
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(extraBossRoom))))->Seeds::Init3(&rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(extraBossRoom),&rng);
|
||||
bossId = (GHIDRA_CAST<BossPool *>((&g_game->_bossPool)))->BossPool::GetBossId(stage,stageType,GHIDRA_CAST<RNG *>(&g_game->_bossPool));
|
||||
configSeed = (GHIDRA_CAST<RNG *>((&rng)))->RNG::Next();
|
||||
roomConfig = pick_boss_room_config(bossId,configSeed);
|
||||
@@ -11686,7 +11686,7 @@ void Level::update_treasure_room_doors_for_trinket()
|
||||
iVar3 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0xc));
|
||||
scratchVec.x = (float)(pGVar1->_gridIndex % iVar3) * 40.0 + 40.0;
|
||||
scratchVec.y = (float)(pGVar1->_gridIndex / iVar3) * 40.0 + 120.0;
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0xf,&scratchVec,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,
|
||||
Game::Spawn(g_game,1000,0xf,&scratchVec,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,
|
||||
uVar2);
|
||||
(GHIDRA_CAST<GridEntity_Door *>((savedDoor)))->GridEntity_Door::LoadSprite();
|
||||
(GHIDRA_CAST<GridEntity_Door *>((savedDoor)))->GridEntity_Door::UpdateAnimation();
|
||||
@@ -11703,7 +11703,7 @@ void Level::update_treasure_room_doors_for_trinket()
|
||||
doorSlotOffset = iVar3 + 4;
|
||||
} while (doorSlotOffset < 0x744);
|
||||
}
|
||||
(GHIDRA_CAST<Game *>((in_ECX)))->Game::UpdateVisibility();
|
||||
Game::UpdateVisibility(in_ECX);
|
||||
}
|
||||
}
|
||||
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
|
||||
@@ -11740,7 +11740,7 @@ uint8_t Level::IsMausoleumHeartStage()
|
||||
effectiveStage = iVar1;
|
||||
}
|
||||
if ((effectiveStage == 6) && ((this->_stageType == 4 || (this->_stageType == 5)))) {
|
||||
isStateFlagSet = (GHIDRA_CAST<Game *>((game)))->Game::GetStateFlag(0x2e);
|
||||
isStateFlagSet = Game::GetStateFlag(game,0x2e);
|
||||
if (isStateFlagSet != 0) {
|
||||
return 1;
|
||||
}
|
||||
@@ -11774,7 +11774,7 @@ uint8_t Level::IsPreAscent()
|
||||
effectiveStage = stage;
|
||||
}
|
||||
if ((effectiveStage == 6) && ((this->_stageType == 4 || (this->_stageType == 5)))) {
|
||||
isStateFlagSet = (GHIDRA_CAST<Game *>((game)))->Game::GetStateFlag(0x2f);
|
||||
isStateFlagSet = Game::GetStateFlag(game,0x2f);
|
||||
if (isStateFlagSet != 0) {
|
||||
return 1;
|
||||
}
|
||||
@@ -11909,7 +11909,7 @@ void Level::raise_mineshaft_rail()
|
||||
game = g_game;
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((railPit)) + 0x8)))) = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((railPit)) + 0x8)))) & 0xffff01ff | 0x100;
|
||||
*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(game->_room) + GHIDRA_INT(local_34) + 0x746cU)) = 1;
|
||||
(GHIDRA_CAST<Game *>((game)))->Game::ShakeScreen(0x14);
|
||||
Game::ShakeScreen(game,0x14);
|
||||
manager = g_manager;
|
||||
local_30 = 0x254;
|
||||
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_30));
|
||||
@@ -11948,7 +11948,7 @@ void Level::raise_mineshaft_rail()
|
||||
game = g_game;
|
||||
savedGridEntity[7] = uVar2;
|
||||
savedGridEntity[5] = 0;
|
||||
(GHIDRA_CAST<Game *>((game)))->Game::ShakeScreen(0x14);
|
||||
Game::ShakeScreen(game,0x14);
|
||||
iVar4 = g_game->_currentRoomIdx;
|
||||
local_34 = GHIDRA_CAST<Level *>(mineshaftRoom->GridIndex);
|
||||
fVar6 = 0.0;
|
||||
@@ -13148,7 +13148,7 @@ void Level::generate_random_layout()
|
||||
if (GHIDRA_UINT(this->_currentDimensionIdx) < 3) {
|
||||
descriptor = this->_roomList + 0x1fc;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(descriptor))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(descriptor),rng);
|
||||
seed = rng->_seed;
|
||||
local_3b4 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (seed == 0) {
|
||||
@@ -13192,7 +13192,7 @@ void Level::generate_random_layout()
|
||||
if (GHIDRA_UINT(this->_currentDimensionIdx) < 3) {
|
||||
descriptor = this->_roomList + 0x200;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(descriptor))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(descriptor),rng);
|
||||
seed = rng->_seed;
|
||||
local_3b4 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (seed == 0) {
|
||||
@@ -13236,7 +13236,7 @@ void Level::generate_random_layout()
|
||||
if (GHIDRA_UINT(this->_currentDimensionIdx) < 3) {
|
||||
descriptor = this->_roomList + 0x1fe;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(descriptor))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(descriptor),rng);
|
||||
seed = rng->_seed;
|
||||
local_3b4 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (seed == 0) {
|
||||
@@ -13341,7 +13341,7 @@ void Level::generate_random_layout()
|
||||
if (GHIDRA_UINT(this->_currentDimensionIdx) < 3) {
|
||||
descriptor = this->_roomList + 0x207;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(descriptor))))->Seeds::Init3(&localRng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(descriptor),&localRng);
|
||||
local_3c0 = (void *)0x0;
|
||||
if (localRng._seed == 0) {
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
|
||||
@@ -13396,7 +13396,7 @@ void Level::generate_random_layout()
|
||||
if (GHIDRA_UINT(this->_currentDimensionIdx) < 3) {
|
||||
descriptor = this->_roomList + 0x20c;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(descriptor))))->Seeds::Init3(&localRng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(descriptor),&localRng);
|
||||
local_3b4 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (localRng._seed == 0) {
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
|
||||
@@ -13450,7 +13450,7 @@ void Level::generate_random_layout()
|
||||
if (GHIDRA_UINT(this->_currentDimensionIdx) < 3) {
|
||||
descriptor = this->_roomList + 0x204;
|
||||
}
|
||||
(GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Seeds *>(descriptor))))->Seeds::Init3(rng);
|
||||
Seeds::Init3(GHIDRA_CAST<Seeds *>(descriptor),rng);
|
||||
seed = rng->_seed;
|
||||
local_3b4 = GHIDRA_CAST<RoomConfig_Room *>(0x0);
|
||||
if (seed == 0) {
|
||||
@@ -14365,7 +14365,7 @@ uint8_t Level::UpdateBackwardsPathStages()
|
||||
if (GHIDRA_INT((g_game->_playerManager)._playerList._end) -
|
||||
GHIDRA_INT((g_game->_playerManager)._playerList._begin) >> 2 != 0) {
|
||||
do {
|
||||
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(uVar6);
|
||||
player = Game::GetPlayer(g_game,uVar6);
|
||||
isHasEffect = (GHIDRA_CAST<TemporaryEffects *>((&player->_temporaryeffects)))->TemporaryEffects::HasCollectibleEffect(0x2c0);
|
||||
if (isHasEffect != 0) {
|
||||
local_14 = 10000.0;
|
||||
@@ -14555,7 +14555,7 @@ void Level::InitializeGenesisRoom(uint8_t **param_2, int *param_3, int *param_4)
|
||||
(popup,&g_manager->_font2_TeamMeatEx12,(void *)0x0,(void *)0x0,&local_38);
|
||||
local_8 = (void *)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),1);
|
||||
MessagePopup::add_ok_button(GHIDRA_CAST<uint8_t *>("##GAME###Online/ERROR_LOBBY_FULL"),popup);
|
||||
(GHIDRA_CAST<PopupQueue *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_manager[1]._gamestate)) + 0xcf0))))))->PopupQueue::push(popup);
|
||||
PopupQueue::push(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_manager[1]._gamestate)) + 0xcf0))),popup);
|
||||
local_64 = 0;
|
||||
local_60 = 0;
|
||||
local_6c = 0;
|
||||
|
||||
Reference in new issue
Block a user