1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-05-05 16:43:24 -07:00

fix VERSION_OVERRIDE functionality

This commit is contained in:
Connor Olding 2020-07-29 16:06:21 +02:00
parent bd8f6b3c28
commit e53a982589

View File

@ -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)