diag(windows-nui): introspect the filter's validity box DAT_103d3230 (the valid region our M*Position must fall within)
This commit is contained in:
1 parent
501ee262ad
commit
dac3bb22d2
1 file changed
+13
-3
@@ -150,9 +150,19 @@ void DumpGameDisplayState() {
|
||||
SafeReadU32(base + 0x3d3260u, &c0);
|
||||
SafeReadU32(base + 0x3d3264u, &c1);
|
||||
SafeReadU32(base + 0x3d3268u, &c2);
|
||||
ShimLog("game-skel3: R48=(%.3f,%.3f,%.3f) R54=(%.3f,%.3f,%.3f) R60=(%.3f,%.3f,%.3f)",
|
||||
asf(a0), asf(a1), asf(a2), asf(b0), asf(b1), asf(b2), asf(c0), asf(c1),
|
||||
asf(c2));
|
||||
// DAT_103d3230 is the validity box: FUN_101ab6d0 clamps our M*Position to the
|
||||
// box [cornerA..cornerB] and requires the squared distance <= 0.05^2.
|
||||
uint32_t x0 = 0, x1 = 0, x2 = 0, y0 = 0, y1 = 0, y2 = 0;
|
||||
SafeReadU32(base + 0x3d3230u, &x0);
|
||||
SafeReadU32(base + 0x3d3234u, &x1);
|
||||
SafeReadU32(base + 0x3d3238u, &x2);
|
||||
SafeReadU32(base + 0x3d323cu, &y0);
|
||||
SafeReadU32(base + 0x3d3240u, &y1);
|
||||
SafeReadU32(base + 0x3d3244u, &y2);
|
||||
ShimLog("game-skel3: boxA(+30)=(%.3f,%.3f,%.3f) boxB(+3c)=(%.3f,%.3f,%.3f) "
|
||||
"R48=(%.3f,%.3f,%.3f) R54=(%.3f,%.3f,%.3f) R60=(%.3f,%.3f,%.3f)",
|
||||
asf(x0), asf(x1), asf(x2), asf(y0), asf(y1), asf(y2), asf(a0), asf(a1),
|
||||
asf(a2), asf(b0), asf(b1), asf(b2), asf(c0), asf(c1), asf(c2));
|
||||
|
||||
// The filter reads the manager's internal copy of SkeletonData[0]. The game's
|
||||
// NUI_SKELETON_FRAME sits at mgr+0x1a0 (hdr 0x30), so SkeletonData[0] begins
|
||||
|
||||
Reference in new issue
Block a user