2489 prototypes applied; param_N lines 35921. The one new decompile failure is FUN_00c932c0, data misread as code.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The /tmp tmpfs has a shared per-user quota: Ghidra's temp files hit it mid-dump, 8158/21083 functions came out and the
cut dump replaced the good one. build.sh now points java.io.tmpdir at .tmp/ in the repo and keeps dump/ when dump.new
has under 99% of its functions. Round 20: AnmCache::ParseFile, FXLayers/Music::LoadConfig, challenges_xml_load,
LuaEngine::RegisterAPI, controller glyph tables, ...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entity_NPC/Entity_Familiar::TakeDamage, PersistentGameData save import and challenges, pause screen pages,
Menu_Character::render_wheel, ... 2046 prototypes applied.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
UsePill, Game::Render, Entity_Laser::update_laser, Room::render_water, the Beast, CreateGlitchedCollectible, the NPC
dispatcher, ... Entity_Player::UseCard still fails in ApplyLocals ('Bad instruction count exceeded', not the instruction
limit: raising it did not help), so its 56 rows wait.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entity_Player::UseActiveItem/update_effects/EvaluateItems/Update/TakeDamage, Entity_Tear::Update, Entity_Familiar::Update,
EntityConfig::LoadEntities, Room::Init, Level::place_special_rooms, Hush, Mega Satan, ... (only single-role variables:
damageSource, isPenalized, genRng, secretRoomIdx, daemonsTailRng). Entity_Player::UseCard's 56 rows did not apply
(ApplyLocals could not decompile it this run; it now prints the decompiler's error).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
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>
field_0x 5868 -> 3946, named ->members 99k -> 104k, unnamed code 19% -> 13.5% of bytes, 9132 FUN_ left.
LayerState/ChallengeParam/DailyChallenge/Menu_Online/GameStateItemPool/ItemPool_Item/BackwardsStageDesc, left in Ghidra by
an early unfiltered import, now come from 86 verified rows (all offsets held; GlowingHourglassState's tail is +0x188 here).
Corrections: libpng/libjpeg/libvorbis misnames, wrong ZHL matches (Manager::ResizeWindow = Cutscene::ANM2Part::Update,
NPCAI_Pathfinder::EvadeTarget = netplay), GameOver::Show, Level::load_room. std::vector<bool> is 0x10 (bit count).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ApplyTypes: std_vector/string/deque/map/set/list members get MSVC layouts (_begin/_end/_capacity ...), structs used as a
member type are built even when small (BitSet128 _tearFlags._l, KColor, RNG were dropped), structs padded to a multiple
of 4 (PlayerCostumeMap stride 0x10). headers.py prints STL members at their real size and pads to the alignment.
Round 6: 99 fields (Manager ItemConfig lists/InfoDisplay/lobby settings, Game transitions/PreloadManager, PersistentGameData
arrays, HomingLaser, EntityList), 500 names, 6 corrections (Menu_Challenge::Render, Level::compute_room_distances, ...).
9622 FUN_ left, in_ECX + 0x 17363 -> 16720.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>