summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--plugins/data/data_gameinit.lua2
-rw-r--r--plugins/data/load_dat.lua3
-rw-r--r--plugins/portname/init.lua2
3 files changed, 4 insertions, 3 deletions
diff --git a/plugins/data/data_gameinit.lua b/plugins/data/data_gameinit.lua
index da0845db705..7b93334e2ce 100644
--- a/plugins/data/data_gameinit.lua
+++ b/plugins/data/data_gameinit.lua
@@ -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
diff --git a/plugins/data/load_dat.lua b/plugins/data/load_dat.lua
index 3521820f078..ce4ffed5c80 100644
--- a/plugins/data/load_dat.lua
+++ b/plugins/data/load_dat.lua
@@ -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
diff --git a/plugins/portname/init.lua b/plugins/portname/init.lua
index 3fef9045d4f..c622b722532 100644
--- a/plugins/portname/init.lua
+++ b/plugins/portname/init.lua
@@ -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