Files
isaac-port/generated-src/source_quad.cpp
T
shweetandClaude Opus 5.5 3ce74c6e2d Reconstruction layout: generated-src/ (generated) and src/ (curated), CMake, the first takeover: RNG
The decompiled C++ tree moves to generated-src/ (classes.h, C++20); src/ is for code written by hand. A curated function
defines the generated declaration and starts its comment with its address, and source_tree.py stops emitting that body.
src/rng.cpp takes over RNG (SetSeed, the constructor, Next, RandomInt, RandomFloat, Shuffle) with the shift table read
from the exe as a constexpr array; src/log.h names KAGE_LogMessage's levels (1 INFO, 2 NET, 4 WARN, 8 ERROR, 16 ASSERT,
from its prefix jump table). CMakeLists.txt builds src/*.cpp against generated-src/classes.h (clean with -Wall -Wextra).
structs.hpp and headers.py are retired: scripts/merge_fields.py writes the merged field list, classes.h checks the layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:10:23 -05:00

45 lines
1.5 KiB
C++

#include "classes.h"
// 00a11210
SourceQuad::SourceQuad(void *source)
{
float fVar1;
float fVar2;
float fVar3;
(this->_topLeft).y = 0.0;
(this->_topLeft).x = 0.0;
(this->_topRight).y = 0.0;
(this->_topRight).x = 0.0;
(this->_bottomLeft).y = 0.0;
(this->_bottomLeft).x = 0.0;
(this->_bottomRight).y = 0.0;
(this->_bottomRight).x = 0.0;
fVar1 = g_vectorZero.x;
(this->_bottomRight).x = g_vectorZero.x;
fVar2 = g_vectorZero.y;
(this->_bottomRight).y = g_vectorZero.y;
(this->_bottomLeft).x = fVar1;
(this->_bottomLeft).y = fVar2;
(this->_topRight).x = fVar1;
(this->_topRight).y = fVar2;
(this->_topLeft).x = fVar1;
(this->_topLeft).y = fVar2;
fVar1 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(source) + 4));
fVar2 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(source) + 8));
fVar3 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(source) + 0xc));
(this->_topLeft).x = *GHIDRA_CAST<float *>(source);
(this->_topLeft).y = fVar1;
(this->_topRight).x = fVar2;
(this->_topRight).y = fVar3;
fVar1 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(source) + 0x14));
fVar2 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(source) + 0x18));
fVar3 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(source) + 0x1c));
(this->_bottomLeft).x = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(source) + 0x10));
(this->_bottomLeft).y = fVar1;
(this->_bottomRight).x = fVar2;
(this->_bottomRight).y = fVar3;
this->_coordinateSpace = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(source) + 0x20));
return;
}