feat: restore last game folder/rom position on reset-to-menu (#87) - #293
feat: restore last game folder/rom position on reset-to-menu (#87)#293Xeroxxx wants to merge 4 commits into
Conversation
|
Reset-to-menu in Folder/Rom mode lands one folder short for paths a few levels deep Repro: put a ROM at Cause The outer loop in
So the The Fix fnl_got_comp_slash:
stx testvar+2 ; fnl_comp_end = x (exclusive, '/' position)
jsr fnl_enter_subdir
bcc fnl_out ; not found — bail out
+ ldx testvar+2 ; restore x (clobbered inside fnl_enter_subdir)
inx ; skip '/'
bra fnl_comp_loopVerified locally: with the patch the menu returns to the deepest folder for a 5-deep path. Haven't done an exhaustive sweep of Rom-mode edge cases. |
|
@spend-cloud-tom Thanks for testing. The proposed fix is spot on. |
May close: #87
Reset to menu got extended with two more options: Rom and Folder
https://www.youtube.com/watch?v=pQI8CDfdafI