diff options
| author | 2017-02-03 18:30:38 -0600 | |
|---|---|---|
| committer | 2017-02-03 18:30:38 -0600 | |
| commit | 21b4a16edd1eb0750e1178b16d2503c4102cbb51 (patch) | |
| tree | c19c976f161d90da6deb8765711e7948ffe05faa /plugins/hiscore/init.lua | |
| parent | 544a8091c09e7fa4b161dc2973ac88760e6febdf (diff) | |
plugins/hiscore: use videoram share for missile command scores so madsel isn't disturbed (nw)
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; |
