diag(windows-nui): also introspect game transform matrix diagonal + candidate validity flags
This commit is contained in:
1 parent
f46021f61a
commit
b4637dc119
1 file changed
+24
@@ -112,6 +112,30 @@ void DumpGameDisplayState() {
|
||||
"selIDs(+1684)=[%u,%u] fedID(+15f0)=%u mode(+17f4)=%u",
|
||||
asf(ref0), asf(ref1), asf(ref2), asf(grav0), asf(grav1), asf(grav2),
|
||||
sel0, sel1, r20sel, mode & 0xFFu);
|
||||
|
||||
// Transform matrix (gamekdm DAT_103d4a80) diagonal + the 6 candidate
|
||||
// validity flags/IDs (DAT_103e29cc, stride 0x20; flag byte at +0, id float at
|
||||
// -4) so we can see live whether the filter validates our candidate and
|
||||
// whether the matrix is identity.
|
||||
uint32_t m0 = 0, m5 = 0, m10 = 0, m3 = 0, m7 = 0, m11 = 0;
|
||||
SafeReadU32(base + 0x3d4a80u + 0x00u, &m0);
|
||||
SafeReadU32(base + 0x3d4a80u + 0x14u, &m5);
|
||||
SafeReadU32(base + 0x3d4a80u + 0x28u, &m10);
|
||||
SafeReadU32(base + 0x3d4a80u + 0x0cu, &m3);
|
||||
SafeReadU32(base + 0x3d4a80u + 0x1cu, &m7);
|
||||
SafeReadU32(base + 0x3d4a80u + 0x2cu, &m11);
|
||||
char cand[160];
|
||||
int off = 0;
|
||||
for (uint32_t i = 0; i < 6; ++i) {
|
||||
uint32_t flag = 0, idf = 0;
|
||||
SafeReadU32(base + 0x3e29ccu + i * 0x20u, &flag);
|
||||
SafeReadU32(base + 0x3e29ccu + i * 0x20u - 4u, &idf);
|
||||
off += _snprintf(cand + off, sizeof(cand) - off, "[%u v=%u id=%.0f]",
|
||||
i, flag & 0xFFu, asf(idf));
|
||||
if (off >= static_cast<int>(sizeof(cand)) - 24) break;
|
||||
}
|
||||
ShimLog("game-skel2: Mdiag=(%.3f,%.3f,%.3f) Mtrans=(%.3f,%.3f,%.3f) cand=%s",
|
||||
asf(m0), asf(m5), asf(m10), asf(m3), asf(m7), asf(m11), cand);
|
||||
}
|
||||
|
||||
BOOL CALLBACK InitSensorLock(PINIT_ONCE, PVOID, PVOID*) {
|
||||
|
||||
Reference in new issue
Block a user