1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-05-18 05:23:22 -07:00
mm/Lua/lib/addrs/init.lua
Connor Olding 1acbaba58c be super strict about globals
theres still a lot of work to do\nsince most scripts just set globals explicitly\nthis is still better than implied globals though
2016-01-13 09:21:24 -08:00

18 lines
308 B
Lua

local hash
if bizstring then
hash = gameinfo.getromhash()
else
hash = m64p.rom.settings.MD5
end
local Game = require "addrs.addrs"
local game = Game(hash)
-- TODO: return globalize instead
globalize{
version = game.version,
oot = game.oot,
mm = game.mm,
addrs = game,
}
return game