diff options
| author | 2016-08-04 22:46:42 +0200 | |
|---|---|---|
| committer | 2016-08-04 22:46:42 +0200 | |
| commit | 234628a88f583895905f67386b1ef3a9a55046b0 (patch) | |
| tree | c259c61afe3fbef4276cf1aa5c0dcc4f8e43f450 /plugins | |
| parent | 4f8363438069eee23815165675197e186cae0ad1 (diff) | |
Revert modifications of 0646ca8
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/hiscore/init.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/hiscore/init.lua b/plugins/hiscore/init.lua index 00707aca092..fc67584bb07 100644 --- a/plugins/hiscore/init.lua +++ b/plugins/hiscore/init.lua @@ -22,8 +22,8 @@ end function hiscore.startplugin() - local hiscoredata_path = hiscore_plugin_path .. "/hiscore.dat"; - local hiscore_path = hiscore_plugin_path .. "/hi"; + local hiscoredata_path = "hiscore.dat"; + local hiscore_path = "hi"; local config_path = manager:options().entries.inipath:value():match("[^;]+") .. "/hiscore.ini"; config_path = config_path:gsub("%$(%w+)", os.getenv); @@ -87,6 +87,9 @@ function hiscore.startplugin() local function read_hiscore_dat () local file = io.open( hiscoredata_path, "r" ); local rm_match; + if not file then + file = io.open( hiscore_plugin_path .. "/hiscore.dat", "r" ); + end if emu.softname() ~= "" then rm_match = '^' .. emu.romname() .. ',' .. emu.softname() .. ':'; else |
