Curation round 1: 66 boot-path functions rewritten in src/; the game links into a Linux executable
Six agents took over ANM2/AnimationState/LayerState, ItemConfig, EntityConfig, StringTable/Font/FormattedText/RichText, OptionsConfig/ChallengeParams and ModManager/ModEntry functions (FormattedText::parse checked against a transliteration of its assembly on 200,000 random inputs). 174 field rows and 32 names from the round are merged into db/. source_tree.py: a struct or class src/*.h defines is no longer emitted in classes.h (class takeover) and gets no stubs; data labels get stub definitions. build/isaac links (64-bit ELF) and stops at the first function not reconstructed: IsaacMain. Boot path 64/615 functions curated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8c31c98a81
commit
837aa06518
63 files changed
+10557
-12054
No files matched your search
@@ -3496,3 +3496,35 @@
|
||||
0074c9e0 Level::get_red_room_neighbor_slots (roomIdx, side, &slotHere, &slotThere): the neighbour's door slot back (slot +4 for a large room's second segment) when it has it and is not the last boss room (stage 11 / photo door start room seen from below excepted; challenge 44 any); MakeRedRoomDoor (parity_ultra_secret)
|
||||
00738d70 Level::get_secret_room_excluded_cells (out set<int>): the cells no secret room may take: past each room of the room list (the special rooms placed so far) the 8 default door targets (x-1,y)(x,y-1)(x+w,y)(x,y+h)(x-1,y+1)(x+1,y-1)(x+w,y+1)(x+1,y+h) where its RoomConfig lacks the slot or it is type 5/7/8 (shape 1 slots 0-3 only, 4 not 5/7, 6 not 4/6); stage 11: the start room +-1, +-13; place_special_rooms passes it to place_secret_room (was Console::Print by a ZHL prefix sig; parity_floors13)
|
||||
009af1e0 LevelGenerator::add_dead_end Generate 0x9adbb0 while short of dead ends (5 tries): the first get_neighbor_candidates(room, unk 1) candidate of any room, rooms in order, can_place_room with count_neighbor_rooms(connect) < 2, place_room (no is_placement_valid); returns whether one was placed (parity_floors13)
|
||||
0040db70 LayerData::~LayerData destroys the strings at +0x20 and +8 (LayerData _spriteSheetPath, _name); AnmFileData::Clear 0040d850 passes it as the eh-vector destructor with stride 0x38
|
||||
00414500 AnmCache::entry_get g_anmCacheMap try_emplace(key) then returns node+0x14, the AnmFileData of the key (ParseFile's files[key])
|
||||
00416490 AnmCache::lower_bound_find lower_bound of a key in g_anmCacheMap: walks from head->parent comparing node+0x10, fills {parent, isLeft, bound}
|
||||
0072c930 recipe_input_key load_recipes_xml 0072ca50: counts the 8 decoded input symbols and packs them sorted, a byte each lowest first (__allshl by 8 per occurrence), into the uint64 key of ItemConfig::_recipes
|
||||
00731da0 ItemConfig::recipes_emplace load_recipes_xml 0072ca50 with ECX=ItemConfig+0x124: FUN_00732830 emplace of {key, output, pool} into the 0x20-byte-node map, keeping an existing key
|
||||
00732830 std::map<uint64_recipe>::_Try_emplace find lower bound (FUN_00731ee0), return existing on equal key, else allocate a 0x20-byte node and link it (inlined _Insert_node)
|
||||
00731160 std::vector<LocustEntry>::_Tidy ~ItemConfig_Item 00722c10 on ECX=item+0xd0: destroys each 0xb8-byte entry (FUN_00731b90) and frees the storage
|
||||
00731b90 std::_Destroy_range<LocustEntry> ECX..EDX range of 0xb8-byte entries: frees strings at +0x20/+0x38/+0x50/+0x84/+0x9c and the vector at +0x68 (FUN_007311e0)
|
||||
004235c0 std::map<std::string_int>::_Erase_tree Load 00725570 / ItemConfig::destructor 00725190 clear ItemConfig::_collectibleNameMap (+0x3c) with it
|
||||
0069d630 std::map<std::string_int>::operator_index Load 00725570 maps GetLocalizedName to the collectible id (ECX=ItemConfig+0x3c); parse_cache_flags 00723f20 fills its static name->flag table with it
|
||||
00730eb0 std::map<std::string_uint64>::operator_index parse_tags 00722cb0 fills its static tag name->mask table with it (8-byte value at node+0x28)
|
||||
0069db30 std::vector<EntityConfig_Preload>::_Tidy frees 36-byte records after _Tidy_deallocate of the string at +0xc, then zeroes begin/end/cap (ECX = EntityConfig_Entity+0x8c, ~EntityConfig_Entity 00698ab0)
|
||||
0069dbc0 std::vector<EntityConfig_BossColor>::_Tidy destroys 124-byte boss colors (FUN_0069f4e0) and frees the storage (ECX = EntityConfig_Entity+0x68, ~EntityConfig_Entity 00698ab0)
|
||||
0069f4e0 std::_Destroy_range<EntityConfig_BossColor> ECX..EDX range, stride 0x7c, _Tidy_deallocate of the strings at +0x2c/+0x44/+0x5c (load_boss_colors 00698e80 before refilling a boss)
|
||||
0069d780 std::vector<EntityConfig_Baby>::clear stride 0x38, _Tidy_deallocate +0x4 and +0x1c, end = begin (LoadBabies 0069bd50 first thing)
|
||||
00a1b410 Font::get_glyph_index thiscall (ECX=Font): lower_bound of the character in _charsBlock (+0x40), then of the fallback character param_2 unless -1, else _missingCharacter (+0x48); Font::render_glyph 00a1b580
|
||||
00a56750 formatted_text_measure the measure callback FormattedText::set 00a55c40 hands parse 00a56350: Font::get_string_width_n(ctx[0], text, length) as an unsigned float times ctx[1] (scale), truncated by __ftoui3
|
||||
00a26f20 StringTable::load_file thiscall (ECX=StringTable from StringTable::Load 00a26810): FileSystem::Open, rapidxml parse of <stringtable><languages><language id>/<category name><key name><string>; declared as a free function without its this, so Load cannot call it
|
||||
00a62e10 string_duplicate_lower ECX=text: operator_new_tracked copy with ASCII A-Z lowered (crashes on null); StringTable::get_string 00a26af0, get_string_by_index 00a26d30
|
||||
00a55a50 utf8_iterator_init ECX=KAGE::Util::String::CharacterIteratorUTF8 {vtable, begin, end}: end = begin + length, or the NUL for -1; Font::get_string_width_n 00a1b8e0
|
||||
0040c440 TexturePtr::release ECX=TexturePtr: releases [this+4] through its vtable +0xc and calls g_imageReleaseFn when that was the last reference; Font::Unload 00a1ad90 eh-vector-destructs _pageTextures with it
|
||||
0069dd90 deallocate_12 std::allocator<12-byte>::deallocate(ptr, count): count*0xc bytes with the MSVC big-block adjust; vector<12byte>::assign 00a56c30 (shares the name deallocate with 0040c740, so neither is declared under it twice)
|
||||
00a19450 KAGE_Graphics::set_window_size thiscall on the graphics manager (ECX=0xc798e0): stores the int pair at +0xc0/+0xc4 and resizes the GLFW window unless fullscreen (flag 0x100), warning "Setting size of window while in fullscreen"; OptionsConfig::set_fullscreen 00925c60 passes the saved window size
|
||||
00684590 keyvalue_map_get thiscall on the std::map<string,string> keyvalue_map_parse builds: _Find_lower_bound then string_compare, copies the node value (+0x28) into the out string or an empty one; prototype needs ECX map (callers 006841d0, 00684130, 006843a0)
|
||||
00684130 keyvalue_map_read_int thiscall on the same map: keyvalue_map_get then atoi, else the default arg2; OptionsConfig::Load "PopUps", "MaxScale" ...
|
||||
006843a0 keyvalue_map_read_float thiscall on the same map: keyvalue_map_get then atof, default in XMM2, result in XMM0; OptionsConfig::Load "MusicVolume", "Gamma" ...
|
||||
00925f30 float_split modf on XMM0: returns the fraction, stores the whole part at ECX; OptionsConfig::set_vsync 00925ce0 takes the fraction of refresh rate / 60
|
||||
00424540 std_set_uint_erase_tree MSVC _Tree_val::_Erase_tree for 0x14-byte uint nodes: recurses right, frees with operator_delete(node, 0x14), loops left; ChallengeParam::Reset 00424440
|
||||
00a15ab0 KAGE_Filesys_FileManager::GetSecondaryFilePathHash REPENTOGON name; static __fastcall uint32_t (const char* filePath in ECX): FNV-style 0x5bb2220e * 0x1000193 over lowercased, backslash-to-slash bytes; TryRedirectPath 008f5b4b calls it with ECX=path. classes.h declares it without its parameter
|
||||
0086e6c0 LuaEngine::RunScript REPENTOGON LuaEngine::RunScript(const char* path), __thiscall: LoadModContent 008f464d loads ECX from g_luaEngine (00c71690); strings 'Running Lua Script: %s', 'There was an error running the lua file: %s'
|
||||
008f6190 is_mod_name_less ListMods sort comparator: string_compare(a->_name, b->_name) >> 31 on two ModEntry*
|
||||
0069d290 EntityConfig::link_tainted_players misnamed Menu_Mods::Update: LoadModContent 008f4681 calls it with ECX=g_manager+0x2a670 (_entityConfig); walks players from index 41 (0x29, 0x148-byte EntityConfig_Player), maps display names, then sets +0x124 of players whose _bSkinParentName matches
|
||||
|
Can't render this file because it is too large.
|
Reference in new issue
Block a user