mirror of
https://github.com/notwa/mm
synced 2024-11-05 01:29:03 -08:00
use a table of versions to asms
This commit is contained in:
parent
5b11974962
commit
ea1e055e87
1 changed files with 13 additions and 11 deletions
|
@ -130,16 +130,18 @@ function inject(fn)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if oot then
|
local asms = {
|
||||||
if version == 'O EUDB MQ' then
|
['O US10'] = 'spawn oot.asm',
|
||||||
inject('print.asm')
|
['O JP10'] = 'spawn oot.asm',
|
||||||
else
|
['O EUDB MQ'] = 'print.asm',
|
||||||
inject('spawn oot.asm')
|
|
||||||
end
|
['M US10'] = 'spawn mm.asm',
|
||||||
|
['M JP10'] = 'spawn mm early.asm',
|
||||||
|
}
|
||||||
|
|
||||||
|
local asm = asms[version]
|
||||||
|
if asm then
|
||||||
|
inject(asm)
|
||||||
else
|
else
|
||||||
if version == 'M JP10' or version == 'M JP11' then
|
print('no appropriate assembly found for this game')
|
||||||
inject('spawn mm early.asm')
|
|
||||||
else
|
|
||||||
inject('spawn mm.asm')
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue