Generated stubs: the build links into a Linux executable that runs as far as src/ goes

source_tree.py writes generated-src/stubs.cpp: every function, vtable slot and import src/ has not taken over, defined
as a stub that prints 'Reached <name> <address>, not reconstructed yet' and stops. CMake builds src/*.cpp + stubs into
the isaac executable, so each run names the next function to curate. src/main.cpp hands over to the game's IsaacMain.
Classes with only parameterised constructors get a defaulted one, so stub constructors of their holders compile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-11-19 21:44:40 -05:00
1 parent 9d4d4f5c64
commit 2b108ca729
5 files changed
+25103 -2

No files matched your search

+20
View File
@@ -762,6 +762,7 @@ struct Vector {
uint8_t operator_eq(Vector *other); // 00a10600
uint8_t operator_ne(Vector *other); // 00a10630
Vector * __unm(Vector *outResult); // 00a10660
Vector() = default;
float x;
float y;
@@ -803,6 +804,7 @@ struct AnimationState {
int NextEventTrigger(uint8_t *eventName); // 0040af10
AnimationState * copy_assign(AnimationState *other); // 0040bbf0
int GetAnimationLength(); // 00440e30
AnimationState() = default;
ANM2* _animation;
AnimationData* _animData;
@@ -865,6 +867,7 @@ struct ANM2 {
static void LoadDeliriumForm(ANM2 *sprite, int type, int variant, uint8_t isReloadAnm2); // 004a5d10
static void copy_animation_to(ANM2 *source, ANM2 *dest); // 0078b3b0
void update_appear_then_idle(); // 00837210
ANM2() = default;
std_string _filename;
std_string _animDefaultName;
@@ -2300,6 +2303,7 @@ LAYOUT32(sizeof(ColorParams) == 0x3a);
struct ColorQuad {
ColorQuad(KColor *color); // 00a10c00
ColorQuad() = default;
};
@@ -5436,6 +5440,7 @@ struct FormattedText {
static void split_lines(uint8_t *text, void *lines); // 00a55ef0
static void split_lines_utf16(short *text, void *outLines); // 00a56060
static void parse(uint8_t *text, uint32_t maxWidth, void *outLines, void *measureFn, void *userData); // 00a56350
FormattedText() = default;
};
@@ -5967,6 +5972,7 @@ struct KColor {
KColor * set_from_argb_signed(uint32_t argb); // 00a0f610
KColor(float red, float green, float blue, float alpha); // 00a0f690
static void hsl_to_rgb(KColor *out, KColor *in); // 00a0fb60
KColor() = default;
float _red;
float _green;
@@ -7464,6 +7470,7 @@ struct BufferedStream : KAGE::Filesys::BufferedStreamBase {
uint8_t rebuffer(); // 00a57fc0
BufferedStream(int bufferSize); // 00a58040
static void seek_base2(int param_1, int param_2); // 00a58270
BufferedStream() = default;
uint8_t _pad_0x28[0x4];
};
@@ -8153,6 +8160,7 @@ namespace KAGE::Network::Multiplayer {
struct ConstLobby {
virtual ~ConstLobby(); // 00a28230 slot 0 ::FUN_00a28230
ConstLobby(void *lobbyPtr, void *lobbyCtrl); // 00a28360
ConstLobby() = default;
uint8_t _pad_0x4[0x8];
};
@@ -8164,6 +8172,7 @@ struct Lobby : KAGE::Network::Multiplayer::ConstLobby {
void * get_member(void *outProfile, uint32_t index); // 00a284d0
void get_members(void *outMembers, uint8_t isIncludeLocalUser); // 00a285f0
Lobby(void *other); // 00a72740
Lobby() = default;
};
}
LAYOUT32(sizeof(KAGE::Network::Multiplayer::Lobby) == 0xc);
@@ -8365,6 +8374,7 @@ struct SmartPointer {
void * operator_assign(void *other); // 0040c3b0
SmartPointer(void *image); // 0040c4a0
void reset(void *image); // 0040c7f0
SmartPointer() = default;
};
}
@@ -9218,6 +9228,7 @@ struct LevelGenerator {
struct LevelGenerator_Room {
LevelGenerator_Room * constructor(uint32_t column, uint32_t line, uint32_t shape); // 007381b0
LevelGenerator_Room(void *other); // 007507d0
LevelGenerator_Room() = default;
};
@@ -9262,6 +9273,7 @@ LAYOUT32(offsetof(LobbySettings, _password) == 0x30);
struct LootList {
LootList(void *other); // 006c20e0
LootList() = default;
};
@@ -10549,6 +10561,7 @@ struct MessagePopup {
static void add_blank_footer(uint8_t *headerText, uint8_t *messageText, void *popup); // 009c3b70
static void add_ok_button(uint8_t *text, void *popupDesc); // 009c3c30
static void add_yes_no_buttons(uint8_t *message, void *popup); // 009c3d10
MessagePopup() = default;
};
@@ -10647,6 +10660,7 @@ struct NetInputDevice : KAGE::Input::InputDeviceBase {
static uint8_t is_input_ready(uint8_t param_1, int *param_2); // 00901cb0
uint8_t ProcessInputMessage(void *message, void *messageRefCount); // 00902010
static void broadcast_frame_input(uint32_t param_1); // 00902950
NetInputDevice() = default;
};
// NetInputDevice: deleting destructor says 0x18, below its layout 0x370 (ICF-shared destructor?)
@@ -10834,6 +10848,7 @@ LAYOUT32(offsetof(PathFinder, _evadeMovementCountdown) == 0x73c);
struct PathNode {
PathNode(void *other); // 007e48b0
PathNode() = default;
};
@@ -11574,6 +11589,7 @@ struct Shader {
struct Shape {
Shape(void *other); // 0042f850
Shape() = default;
};
@@ -11618,6 +11634,7 @@ struct SoundManager {
struct SourceQuad : DestinationQuad {
SourceQuad(void *source); // 00a11210
SourceQuad() = default;
int _coordinateSpace;
};
@@ -11794,6 +11811,7 @@ LAYOUT32(offsetof(TearParams, _tearHeight) == 0x50);
struct TemporaryEffect {
TemporaryEffect(ItemConfig_Item *item); // 00435f80
TemporaryEffect() = default;
ItemConfig_Item* _item;
int _count;
@@ -13009,6 +13027,7 @@ struct string {
void push_back(uint8_t c); // 0059c4c0
static int find_last_of(uint8_t *data, uint32_t size, uint32_t position, uint8_t *chars, uint32_t count); // 006523e0
static void append_reversed(uint8_t *param_1, uint8_t *param_2); // 007de660
string() = default;
};
}
@@ -13436,6 +13455,7 @@ struct _Exception {
virtual char * FUN_00a8a070(char *param_1); // 00a8a070 slot 2 ::FUN_00a8a070
_Exception(uint32_t param_1, uint32_t param_2, uint32_t param_3); // 00aab3e0
static void _setInternalMessage(uint8_t *param_1, uint8_t *param_2, int param_3); // 00aab470
_Exception() = default;
uint8_t _pad_0x4[0x18];
};