mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
plugins/hiscore: use videoram share for missile command scores so madsel isn't disturbed (nw)
This commit is contained in:
parent
544a8091c0
commit
21b4a16edd
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user