mirror of
https://github.com/notwa/mm
synced 2025-02-05 05:23:22 -08:00
fix VERSION_OVERRIDE functionality
This commit is contained in:
parent
bd8f6b3c28
commit
e53a982589
1 changed files with 2 additions and 2 deletions
|
@ -11,9 +11,9 @@ local same = {
|
||||||
rawset(_G, 'Actor', function() end)
|
rawset(_G, 'Actor', function() end)
|
||||||
|
|
||||||
return function(hash)
|
return function(hash)
|
||||||
local version = versions[hash] or VERSION_OVERRIDE
|
local version = versions[hash] or rawget(_G, 'VERSION_OVERRIDE')
|
||||||
if version == nil then
|
if version == nil then
|
||||||
error('unknown rom')
|
error('unknown ROM; try setting VERSION_OVERRIDE')
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local v = version:sub(1, 2)
|
local v = version:sub(1, 2)
|
||||||
|
|
Loading…
Add table
Reference in a new issue