mirror of
https://github.com/notwa/mm
synced 2024-11-05 07:19:02 -08:00
28 lines
1.1 KiB
Lua
Executable file
28 lines
1.1 KiB
Lua
Executable file
versions = { -- sha1 hashes of .z64s
|
|
-- Majora's Mask
|
|
['D6133ACE5AFAA0882CF214CF88DABA39E266C078'] = "US10",
|
|
['2F0744F2422B0421697A74B305CB1EF27041AB11'] = "USDE",
|
|
['9743AA026E9269B339EB0E3044CD5830A440C1FD'] = "USGC",
|
|
['C04599CDAFEE1C84A7AF9A71DF68F139179ADA84'] = "EU10",
|
|
['BB4E4757D10727C7584C59C1F2E5F44196E9C293'] = "EU11",
|
|
['B38B71D2961DFFB523020A67F4807A4B704E347A'] = "EUDB",
|
|
['A849A65E56D57D4DD98B550524150F898DF90A9F'] = "EUGC",
|
|
['5FB2301AACBF85278AF30DCA3E4194AD48599E36'] = "JP10",
|
|
['41FDB879AB422EC158B4EAFEA69087F255EA8589'] = "JP11",
|
|
['1438FD501E3E5B25461770AF88C02AB1E41D3A7E'] = "JPGC",
|
|
|
|
-- Ocarina of Time
|
|
['AD69C91157F6705E8AB06C79FE08AAD47BB57BA7'] = "O US10",
|
|
-- this is supposedly the same ROM, but i don't have it offhand to verify
|
|
['79A4F053D34018E59279E6D4B83C7DACCD985C87'] = "O US10",
|
|
}
|
|
|
|
--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
|