mirror of
https://github.com/notwa/mm
synced 2025-02-05 13:23:23 -08:00
OoT soft reset... kinda
This commit is contained in:
parent
b78b3567d0
commit
f6d20caa4b
2 changed files with 14 additions and 5 deletions
|
@ -128,6 +128,7 @@ return {
|
||||||
buttons_enabled = AL(0x13E2, 4), -- lol unaligned access
|
buttons_enabled = AL(0x13E2, 4), -- lol unaligned access
|
||||||
event_inf = AL(0x13FA, 0x8),
|
event_inf = AL(0x13FA, 0x8),
|
||||||
magic_max = AL(0x13F4, 2),
|
magic_max = AL(0x13F4, 2),
|
||||||
|
entrance_mod_setter = AL(0x1412, 2),
|
||||||
|
|
||||||
buttons = AG(0x14, 2),
|
buttons = AG(0x14, 2),
|
||||||
scene_number = AG(0xA4, 2),
|
scene_number = AG(0xA4, 2),
|
||||||
|
|
|
@ -113,11 +113,19 @@ end
|
||||||
|
|
||||||
local soft_reset = Callbacks()
|
local soft_reset = Callbacks()
|
||||||
function soft_reset:on()
|
function soft_reset:on()
|
||||||
if oot then return end
|
if oot then
|
||||||
addrs.warp_begin(0x14)
|
-- FIXME: Link voids out on title screen.
|
||||||
addrs.warp_destination(0x1C00)
|
-- need to load title screen save?
|
||||||
addrs.fade_type(0x0B)
|
addrs.warp_begin(0x14)
|
||||||
addrs.entrance_mod_setter(0xFFFA)
|
addrs.warp_destination(0x00CD)
|
||||||
|
addrs.fade_type(0x0B)
|
||||||
|
addrs.entrance_mod_setter(0xFFF3)
|
||||||
|
else
|
||||||
|
addrs.warp_begin(0x14)
|
||||||
|
addrs.warp_destination(0x1C00)
|
||||||
|
addrs.fade_type(0x0B)
|
||||||
|
addrs.entrance_mod_setter(0xFFFA)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local save_pos = Callbacks()
|
local save_pos = Callbacks()
|
||||||
|
|
Loading…
Add table
Reference in a new issue