mirror of
https://github.com/holub/mame
synced 2025-04-16 13:34:55 +03:00
Merge pull request #5755 from MoochMcGee/master
Fix build for nonstandard compiler versions like '8.3-win32'
This commit is contained in:
commit
bba8449cbf
@ -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