summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/data/data_messinfo.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/data/data_messinfo.lua')
-rw-r--r--plugins/data/data_messinfo.lua19
1 files changed, 11 insertions, 8 deletions
diff --git a/plugins/data/data_messinfo.lua b/plugins/data/data_messinfo.lua
index b679763d940..3c94322474f 100644
--- a/plugins/data/data_messinfo.lua
+++ b/plugins/data/data_messinfo.lua
@@ -1,24 +1,27 @@
local dat = {}
-local ver, info
-local datread = require("data/load_dat")
-datread, ver = datread.open("messinfo.dat", "# MESSINFO.DAT", function(str) return str:gsub("\n\n", "\n") end)
+local ver, info
+local datread = require('data/load_dat')
+datread, ver = datread.open(
+ 'messinfo.dat',
+ '# MESSINFO.DAT',
+ function (str) return str:gsub('\n\n', '\n') end)
function dat.check(set, softlist)
if softlist or not datread then
return nil
end
local status, drvinfo
- status, info = pcall(datread, "mame", "info", set)
+ status, info = pcall(datread, 'mame', 'info', set)
if not status or not info then
return nil
end
- local sourcefile = emu.driver_find(set).source_file:match("[^/\\]*$")
- status, drvinfo = pcall(datread, "drv", "info", sourcefile)
+ local sourcefile = emu.driver_find(set).source_file:match('[^/\\]*$')
+ status, drvinfo = pcall(datread, 'drv', 'info', sourcefile)
if drvinfo then
- info = info .. _("\n\n--- DRIVER INFO ---\nDriver: ") .. sourcefile .. "\n\n" .. drvinfo
+ info = info .. _p('plugin-data', '\n\n--- DRIVER INFO ---\nDriver: ') .. sourcefile .. '\n\n' .. drvinfo
end
- return _("MESSinfo")
+ return _p('plugin-data', 'MESSinfo')
end
function dat.get()