mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-20 03:59:59 -04:00
Add a floor scan that finds the floor carrying Link in guest memory on 1.1.1.
The Deku Tree's floating platform is not one of the engine's ground groups, and where its position lives is not known. With floor_scan set (off by default), once Link has been carried at 60 fps for 30 frames with the left stick at rest, one snapshot of the game's heap and alias regions keeps every float triplet near him; 30 frames later the triplets that moved as far as he did are kept, and from then on each frame logs the twelve of them farthest from him with their addresses, positions and moves. The snapshot logs how long it took. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -45,6 +45,13 @@ int plat_mem_readable(uint64_t a, size_t n) { (void)a, (void)n; return 0; }
|
||||
void mem_kernel_access(uint64_t a, uint64_t n) { (void)a, (void)n; }
|
||||
int mem_host_readable(uint64_t a, uint64_t n) { (void)a, (void)n; return 0; }
|
||||
int mem_info(uint32_t id, uint64_t *out) { (void)id, (void)out; return 0; } // the floor probe (off here)
|
||||
// the floor scan (off here)
|
||||
static RtGuestLayout layout_stub;
|
||||
const RtGuestLayout *mem_layout(void) { return &layout_stub; }
|
||||
uint32_t mem_query(uint64_t a, RtMemoryInfo *out) { (void)a, memset(out, 0, sizeof *out); return 1; }
|
||||
int mem_read_hold(uint64_t a, uint64_t n) { (void)a, (void)n; return 0; }
|
||||
void mem_read_release(void) {}
|
||||
int input_pad_stick_percent(double pct[2]) { pct[0] = pct[1] = 0; return 0; }
|
||||
int mem_copy_readable(uint8_t *const *dst, const uint64_t (*src)[2], int n, uint8_t *ok) {
|
||||
(void)dst, (void)src, (void)n, (void)ok;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user