Commit Graph
9 Commits
Author SHA1 Message Date
shweetandClaude Opus 5.5 b9c36dfa07 Full redump with round 15: 2421 more locals in the next 192 game functions, 41 prototypes from round 14
Level::ChangeRoom, Entity_Player::Render, Game::LoadConfigXmls, MenuManager::LoadGraphics, Leper, ... 1801 prototypes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 07:19:49 -04:00
shweetandClaude Opus 5.5 32a702cd50 Full redump with round 14: 2240 more locals in the next 144 game functions, 29 prototypes from round 13
Manager::load_configs, Room::SpawnGreedModeWave, Menu_Options::Update, Blastocyst, Hive, Visage mask, Fistula, ... 1763
prototypes applied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:39:16 -04:00
shweetandClaude Opus 5.5 4b8210b900 Full redump with round 13: 2126 more locals in the next 119 game functions, 19 prototypes from round 12
GameState::write_player, Level::load_room, Mega Satan's hand, The Haunt, PlayerHUD::RenderHearts, TrapDoor, familiar AIs, ...
005d2a70 did not decompile inside ApplyLocals (PTRSUB off of non structured pointer type) and waits with UseCard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 05:59:34 -04:00
shweetandClaude Opus 5.5 1da26aa0e7 Full redump with round 12: 1511 more locals in the next 80 game functions; ApplyLocals skips a clashing name instead of aborting
3899 of 3920 db/locals.tsv names now show in the dump (UseCard's 56 still wait). Delirium, Heretic, Reap Creep,
Entity_Effect::Render, Game::BombTearflagEffects, Menu_Stats, ... plus 18 prototypes from round 11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 05:19:48 -04:00
shweetandClaude Opus 5.5 8e6b947042 Full redump with 15 prototypes from the locals round; ApplyLocals raises the decompiler's instruction limit for UseCard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 03:26:24 -04:00
shweetandClaude Opus 5.5 40e518bc76 Full redump with round 9 prototypes (1716 applied) and KAGE_LogMessage returning again
Ghidra had KAGE_LogMessage marked non-returning, so ~1,200 functions were cut off at their first log call. ApplyProtos
clears the flag on any function with a RET, re-disassembles after its calls and regrows the callers: 'does not return'
5337 -> 2355 (all genuine: _invalid_parameter_noinfo_noreturn, _Xlen, _CxxThrowException), dump 1.235M -> 1.299M lines.
596 more prototypes, ~20% with REPENTOGON register notation: param_N lines 44610 -> 42588, in_XMM 1237 -> 734.
12 renames from the agents (HUD::LoadGraphics at 008ed350 = Menu_OnlineLobby::load_member_sprite, Room::MamaMegaExplosion
= Weapon::fire_bomb, vector_iterate_noop = PlayerManager::get_total_luck, log_room_transition = RoomTransition::start, ...).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 21:41:31 -04:00
shweetandClaude Opus 5.5 36ae4cbfb8 ApplyProtos: REPENTOGON register notation (float r<xmm3>, int x<edx>, float<xmm0> returns, static cleanup) via custom storage
Whole-program optimisation passes many floats in XMM registers and some arguments in ECX/EDX with the caller popping the
stack; those declarations were skipped. Every prototype is now applied with explicit storage (this in ECX for __thiscall).
Tested on a project copy: 1103 -> 1158 applied from the existing files (REPENTOGON's register declarations now fit),
e.g. void __thiscall Game::SetBloom(Game *this,int Time,float Strength).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 20:25:00 -04:00
shweetandClaude Opus 5.5 df5db46f62 Full redump with round 8: 471 confirmed prototypes (1103 applied, was 622); ApplyProtos takes free functions
Every db/protos.zhl line is checked against the callee's RET n. Typed parameters make more pointers typed: named
->members 104k -> 115k (field_0x 3946 -> 4576 as newly typed pointers show their unknown members), param_N lines
47349 -> 44610. 83 targets skipped: XMM float args/returns or ECX/EDX + caller-cleaned stack (whole-program optimisation).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 20:21:16 -04:00
shweetandClaude Opus 5.5 e285a40016 db/protos.zhl: own function signatures, applied like REPENTOGON's only where RET n agrees
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 22:50:46 -04:00