mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 19:39:57 -04:00
Move the sprint button's stance host off the water ripples' patch page slot, and fix how presses and timings reach it.
The stance site called page +0xf50, which the 0.10.0 line gives the water ripples above 60 fps: the second registration ends every 1.1.1 start with "registered twice", the sprint button off included. It calls +0xf30 now, and the comments say which slots the other sets hold. The set's switch is NX2NAVI_SPRINT_BUTTON_PATCH, not a name another open request uses for a set of its own. The stand-still timings count 60 Hz frames (frame_step_frames), so a toggled sprint no longer ends on a short stop at high frame rates. A press is decided at its start for its whole length: kept from the game and the sprint's when it begins in gameplay (B: while Link moves), else the game's alone, so a held B is not handed to the game half way and a B that closes the pause menu starts no sprint. A sprint switched off with the button setting does not come back by itself, Link's state is read only where the memory is readable, and the row, nx2navi.ini.example and the controls page say that B is the jump under the game's Swap Jump Controls and name the button without assuming the layout. tests\sprint_check.py covers the press latch, the menu press, 240 fps and the switch-off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -244,9 +244,10 @@ site occlusion_off main 11b82f4 39400008 2a1f03e8 # its update's store
|
||||
# main+0x4ae798 into x10 and tests bit 4 twice from it: at main+0x4ae7a0 to start the sprint (Link +0x2c bit 20, when
|
||||
# his state is Walk) and at main+0x4afa90 to keep it. The update of the camera and stance that follows
|
||||
# (main+0xc025d0) loads the flags' low byte at main+0xc07f3c into w8 and tests the same bit at main+0xc07f40. Each site
|
||||
# keeps its load and calls the page's host function after it (+0xf40, +0xf50), which ORs bit 4 into x10 or w8 while
|
||||
# keeps its load and calls the page's host function after it (+0xf40, +0xf30; +0xf50 up to +0xff0 are taken, see
|
||||
# runtime/patches.c, mouse_direct.c and ov_zstd.c), which ORs bit 4 into x10 or w8 while
|
||||
# the sprint button's sprint is on for Link (sprint_link, sprint_stance); x19 is Link at both. x30 is the function's
|
||||
# own saved one at both sites: both functions call others before and after, and restore x30 from their frames.
|
||||
set sprint NX2NAVI_SPRINT_PATCH 1
|
||||
set sprint NX2NAVI_SPRINT_BUTTON_PATCH 1
|
||||
site sprint main 4ae798 f940014a f940014a 9527c9ea # ldr x10, [x10] -> ldr x10, [x10]; bl page+0xf40
|
||||
site sprint main c07f3c 39400108 39400108 950a6405 # ldrb w8, [x8] -> ldrb w8, [x8]; bl page+0xf50
|
||||
site sprint main c07f3c 39400108 39400108 950a63fd # ldrb w8, [x8] -> ldrb w8, [x8]; bl page+0xf30
|
||||
|
||||
Reference in New Issue
Block a user