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:
shweetandClaude Opus 5.5 committed 2026-11-19 22:13:25 -05:00
1 parent 8c31c98a81
commit 837aa06518
63 files changed
+10557 -12054

No files matched your search

+54
View File
@@ -0,0 +1,54 @@
#pragma once
// The most layers, nulls and layer tracks an .anm2 can hold, and the size of AnimationData::_layerMap.
constexpr int ANM2_LAYER_LIMIT = 64;
// ANM2::_bitflags and LayerState::_bitflags, ORed together when a layer renders.
// REPENTOGON's AnimRenderFlags, plus the two bits a layer named with a leading '*' gets.
enum AnimRenderFlag : unsigned int
{
ANIM_RENDER_UNTINTED = 1 << 0,
ANIM_RENDER_GLITCH = 1 << 1,
ANIM_RENDER_LIGHT_PASS_ONLY = 1 << 2,
ANIM_RENDER_COLOROFFSET_CHAMPION = 1 << 4,
ANIM_RENDER_STATIC = 1 << 5,
ANIM_RENDER_IGNORE_GAME_TIME = 1 << 6,
ANIM_RENDER_GOLDEN = 1 << 7,
ANIM_RENDER_ENABLE_LAYER_LIGHTING = 1 << 10,
ANIM_RENDER_ENABLE_NULL_LAYER_LIGHTING = 1 << 11
};
// The five ints of LayerState::_blendMode, in REPENTOGON's BlendMode order.
enum BlendModePart : int
{
BLEND_EQUATION,
BLEND_RGB_SOURCE,
BLEND_RGB_DEST,
BLEND_ALPHA_SOURCE,
BLEND_ALPHA_DEST
};
// REPENTOGON's BlendEquation.
enum BlendEquation : int
{
BLEND_EQUATION_ADD = 0,
BLEND_EQUATION_SUBTRACT = 1,
BLEND_EQUATION_REVERSE_SUBTRACT = 2,
BLEND_EQUATION_MIN = 3,
BLEND_EQUATION_MAX = 4
};
// REPENTOGON's BlendFactor, the ones the game supports.
enum BlendFactor : int
{
BLEND_FACTOR_ZERO = 0,
BLEND_FACTOR_ONE = 1,
BLEND_FACTOR_SRC_COLOR = 2,
BLEND_FACTOR_ONE_MINUS_SRC_COLOR = 3,
BLEND_FACTOR_DST_COLOR = 4,
BLEND_FACTOR_ONE_MINUS_DST_COLOR = 5,
BLEND_FACTOR_SRC_ALPHA = 6,
BLEND_FACTOR_ONE_MINUS_SRC_ALPHA = 7,
BLEND_FACTOR_DST_ALPHA = 8,
BLEND_FACTOR_ONE_MINUS_DST_ALPHA = 9
};