mirror of
https://github.com/notwa/mm
synced 2024-11-04 22:49:03 -08:00
Connor Olding
1acbaba58c
theres still a lot of work to do\nsince most scripts just set globals explicitly\nthis is still better than implied globals though
17 lines
308 B
Lua
17 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
|