Introduce the core/platform/host header seam under include/gk/ (portable value
types in core/, Kinect/PE mirror layouts in platform/, the camera-elevation
service interface in host/); the existing include/gk/structs/* paths become
compatibility forwards so no definition is duplicated. Add include/gk/fp.h with
gk::fp::round32 (binary32 rounding barrier) and gk::fp::ExtendedAcc (long double
faithful / double portable), and a GK_FIDELITY=faithful|portable CMake knob
paired with -mfpmath; faithful stays the drop-in differential target. i386-gate
GK_CDECL/STDCALL/THISCALL so non-i386 GNU builds get empty macros (native
-Werror). Migrate the three proven slice functions onto the seam without
behaviour change: box_distance expresses FP through gk/fp.h while keeping the
volatile spill the differential pins; the bodies stay in src/game/*.cpp where
prove_t11.py compiles and greps them. Add tools/seam_symbol_check.py (G5) and
re/game/seam_symbols.json asserting each flagged seam RVA ships as a
non-inlined, addressable symbol.
Verified: prove_t11.py exit 0 / ALL DIFFERENTIALS PASS (faithful, exact-FP from
df1620e); native GK_FIDELITY=portable validity compile under -Werror; macro
cross-check; G5 tool reports all three seam symbols addressable.
51 lines
2.0 KiB
C++
51 lines
2.0 KiB
C++
#pragma once
|
|
|
|
// Platform-quarantine mirror layout for the live manager; all pointers are
|
|
// 32-bit target addresses so the layout stays stable in host tools. Layout
|
|
// pinned by gk/offsets_assert.h. See docs/conventions.md.
|
|
#include "gk/platform/skeleton.h"
|
|
|
|
namespace gk {
|
|
|
|
class NuiSensor;
|
|
|
|
// Live object addressed by *(gamekdm.dll+0x3cf1b4). Unrecovered regions remain
|
|
// byte storage rather than invented fields. All pointers are represented as
|
|
// 32-bit target addresses so this layout remains stable even in host tools.
|
|
GK_PACK_PUSH(8)
|
|
struct LiveManager {
|
|
std::uint32_t nui_thread_address; // +0x0000
|
|
std::uint8_t storage_0004[0x08];
|
|
std::uint32_t committed_subsystems; // +0x000c
|
|
std::uint32_t subsystem_mask; // +0x0010
|
|
std::uint32_t flags; // +0x0014
|
|
std::uint8_t storage_0018[0x08];
|
|
Vec3 reference_direction; // +0x0020
|
|
Vec4 gravity; // +0x002c
|
|
std::uint8_t storage_003c[0x164];
|
|
SkeletonFrame skeleton_frame; // +0x01a0
|
|
std::uint8_t storage_0c08[0x09e8];
|
|
std::uint32_t requested_tracking_ids[2]; // +0x15f0
|
|
std::uint8_t skeleton_tracking_enabled; // +0x15f8
|
|
std::uint8_t storage_15f9[0x03];
|
|
std::uint32_t nui_sensor_address; // +0x15fc
|
|
std::uint8_t storage_1600[0x84];
|
|
std::uint32_t selected_tracking_ids[2]; // +0x1684
|
|
std::uint8_t storage_168c[0x168];
|
|
std::uint8_t synthetic_tracking_mode; // +0x17f4
|
|
};
|
|
|
|
// Cursor-controller state reached through DAT_103d2bb8. The pointer at +0 is
|
|
// an opaque target address; no MSVC vtable or RTTI bytes are reproduced.
|
|
struct CursorControllerState {
|
|
std::uint32_t inner_address;
|
|
std::uint8_t storage_0004[0x104];
|
|
float player1_x;
|
|
float player1_y;
|
|
float player2_x;
|
|
float player2_y;
|
|
};
|
|
GK_PACK_POP
|
|
|
|
} // namespace gk
|