1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-05-17 21:23:22 -07:00

use a table of versions to asms

This commit is contained in:
Connor Olding 2016-01-10 12:54:16 -08:00
parent 5b11974962
commit ea1e055e87

View File

@ -130,16 +130,18 @@ function inject(fn)
end
end
if oot then
if version == 'O EUDB MQ' then
inject('print.asm')
else
inject('spawn oot.asm')
end
local asms = {
['O US10'] = 'spawn oot.asm',
['O JP10'] = 'spawn oot.asm',
['O EUDB MQ'] = 'print.asm',
['M US10'] = 'spawn mm.asm',
['M JP10'] = 'spawn mm early.asm',
}
local asm = asms[version]
if asm then
inject(asm)
else
if version == 'M JP10' or version == 'M JP11' then
inject('spawn mm early.asm')
else
inject('spawn mm.asm')
end
print('no appropriate assembly found for this game')
end