summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/hiscore/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/hiscore/init.lua')
-rw-r--r--plugins/hiscore/init.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/hiscore/init.lua b/plugins/hiscore/init.lua
index cf1b3edc430..a89acfb33e3 100644
--- a/plugins/hiscore/init.lua
+++ b/plugins/hiscore/init.lua
@@ -94,7 +94,8 @@ function hiscore.startplugin()
file = io.open( hiscore_plugin_path .. "/hiscore.dat", "r" );
end
if emu.softname() ~= "" then
- rm_match = '^' .. emu.romname() .. ',' .. emu.softname() .. ':';
+ local soft = emu.softname():match("([^:]*)$")
+ rm_match = '^' .. emu.romname() .. ',' .. soft .. ':';
else
rm_match = '^' .. emu.romname() .. ':';
end
@@ -148,7 +149,8 @@ function hiscore.startplugin()
local function get_file_name ()
local r;
if emu.softname() ~= "" then
- r = hiscore_path .. '/' .. emu.romname() .. "_" .. emu.softname() .. ".hi";
+ local soft = emu.softname():match("([^:]*)$")
+ r = hiscore_path .. '/' .. emu.romname() .. "_" .. soft .. ".hi";
else
r = hiscore_path .. '/' .. emu.romname() .. ".hi";
end