mirror of
https://github.com/notwa/mm
synced 2024-11-04 22:39:02 -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
|
||||
event_inf = AL(0x13FA, 0x8),
|
||||
magic_max = AL(0x13F4, 2),
|
||||
entrance_mod_setter = AL(0x1412, 2),
|
||||
|
||||
buttons = AG(0x14, 2),
|
||||
scene_number = AG(0xA4, 2),
|
||||
|
|
|
@ -113,11 +113,19 @@ end
|
|||
|
||||
local soft_reset = Callbacks()
|
||||
function soft_reset:on()
|
||||
if oot then return end
|
||||
addrs.warp_begin(0x14)
|
||||
addrs.warp_destination(0x1C00)
|
||||
addrs.fade_type(0x0B)
|
||||
addrs.entrance_mod_setter(0xFFFA)
|
||||
if oot then
|
||||
-- FIXME: Link voids out on title screen.
|
||||
-- need to load title screen save?
|
||||
addrs.warp_begin(0x14)
|
||||
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
|
||||
|
||||
local save_pos = Callbacks()
|
||||
|
|
Loading…
Reference in a new issue