mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
plugins/data: fix version for gameinit (nw)
This commit is contained in:
parent
7667013605
commit
cc7ccbd9b5
@ -2,7 +2,7 @@ local dat = {}
|
||||
local ver, info
|
||||
|
||||
local datread = require("data/load_dat")
|
||||
datread, ver = datread.open("gameinit.dat", "# GAMEINIT.DAT")
|
||||
datread, ver = datread.open("gameinit.dat", "# .-GAMEINIT.DAT")
|
||||
|
||||
function dat.check(set, softlist)
|
||||
if softlist or not datread then
|
||||
|
@ -66,7 +66,8 @@ function datfile.open(file, vertag, fixupcb)
|
||||
break
|
||||
end
|
||||
end
|
||||
else
|
||||
end
|
||||
if not ver then
|
||||
-- use file ctime for version
|
||||
ver = tostring(lfs.attributes(filepath, "change"))
|
||||
end
|
||||
|
@ -140,7 +140,7 @@ function portname.startplugin()
|
||||
file:write("msgid \"" .. def .."\"\nmsgstr \"" .. custom .. "\"\n\n")
|
||||
end
|
||||
file:close()
|
||||
manager:machine():popmessage(_("Input port name file saved to ") .. ctrlrpath .. "/portname/" .. filename)
|
||||
manager:machine():popmessage(string.format(_("Input port name file saved to %s")), ctrlrpath .. "/portname/" .. filename)
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user