plugins/hiscore: use videoram share for missile command scores so madsel isn't disturbed (nw)

This commit is contained in:
cracyc 2017-02-03 18:30:38 -06:00
parent 544a8091c0
commit 21b4a16edd
2 changed files with 7 additions and 2 deletions

View File

@ -8778,7 +8778,7 @@ missile:
missile2:
suprmatk:
suprmatkd:
@:maincpu,program,002c,30,47,00
@:maincpu,:videoram/share,002c,30,47,00
;(missile command (set 2)) clone (by GeoMan) - modified hiscore save

View File

@ -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;