1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-11-05 06:49:03 -08:00
mm/Lua/addrs.lua

29 lines
1.1 KiB
Lua
Raw Normal View History

2015-03-13 12:13:56 -07:00
versions = { -- sha1 hashes of .z64s
2015-03-17 14:58:07 -07:00
-- Majora's Mask
2015-03-07 07:38:44 -08:00
['D6133ACE5AFAA0882CF214CF88DABA39E266C078'] = "US10",
['2F0744F2422B0421697A74B305CB1EF27041AB11'] = "USDE",
['9743AA026E9269B339EB0E3044CD5830A440C1FD'] = "USGC",
['C04599CDAFEE1C84A7AF9A71DF68F139179ADA84'] = "EU10",
['BB4E4757D10727C7584C59C1F2E5F44196E9C293'] = "EU11",
['B38B71D2961DFFB523020A67F4807A4B704E347A'] = "EUDB",
['A849A65E56D57D4DD98B550524150F898DF90A9F'] = "EUGC",
['5FB2301AACBF85278AF30DCA3E4194AD48599E36'] = "JP10",
['41FDB879AB422EC158B4EAFEA69087F255EA8589'] = "JP11",
['1438FD501E3E5B25461770AF88C02AB1E41D3A7E'] = "JPGC",
2015-03-17 14:58:07 -07:00
-- Ocarina of Time
['AD69C91157F6705E8AB06C79FE08AAD47BB57BA7'] = "O US10",
-- this is supposedly the same ROM, but i don't have it offhand to verify
['79A4F053D34018E59279E6D4B83C7DACCD985C87'] = "O US10",
}
2015-03-07 07:38:44 -08:00
--while version == nil do
-- emu.yield() -- wait until a known ROM is loaded (doesn't work)
hash = gameinfo.getromhash()
version = versions[hash]
--end
addrs = require("A "..version)
return addrs