mirror of
https://github.com/notwa/mm
synced 2024-11-05 02:29:03 -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)
|
||||
|
||||
return function(hash)
|
||||
local version = versions[hash] or VERSION_OVERRIDE
|
||||
local version = versions[hash] or rawget(_G, 'VERSION_OVERRIDE')
|
||||
if version == nil then
|
||||
error('unknown rom')
|
||||
error('unknown ROM; try setting VERSION_OVERRIDE')
|
||||
return
|
||||
end
|
||||
local v = version:sub(1, 2)
|
||||
|
|
Loading…
Reference in a new issue