diff options
Diffstat (limited to 'plugins/hiscore/init.lua')
-rw-r--r-- | plugins/hiscore/init.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/hiscore/init.lua b/plugins/hiscore/init.lua index 1b881317306..cc3677a6d50 100644 --- a/plugins/hiscore/init.lua +++ b/plugins/hiscore/init.lua @@ -64,7 +64,12 @@ function hiscore.startplugin() emu.print_verbose("hiscore: " .. cputag .. " device not found") return nil end - mem = cpu.spaces[space]; + local rgnname, rgntype = space:match("([^/]*)/?([^/]*)") + if rgntype == "share" then + mem = manager:machine():memory().shares[rgnname] + else + mem = cpu.spaces[space] + end if not mem then emu.print_verbose("hiscore: " .. space .. " space not found") return nil; |