mirror of
https://github.com/holub/mame
synced 2025-04-16 13:34:55 +03:00
Fix build for nonstandard compiler versions like '8.3-win32'
This commit is contained in:
parent
b9dd24a6b5
commit
5abd8b8230
@ -42,6 +42,9 @@ function str_to_version(str)
|
||||
end
|
||||
local cnt = 10000
|
||||
for word in string.gmatch(str, '([^.]+)') do
|
||||
if(tonumber(word) == nil) then
|
||||
return val
|
||||
end
|
||||
val = val + tonumber(word) * cnt
|
||||
cnt = cnt / 100
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user