1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-06-25 19:47:12 -07:00

OoT soft reset... kinda

This commit is contained in:
Connor Olding 2015-11-15 08:41:40 -08:00
parent b78b3567d0
commit f6d20caa4b
2 changed files with 14 additions and 5 deletions

View File

@ -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),

View File

@ -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()