mirror of
https://github.com/holub/mame
synced 2025-06-07 21:33:45 +03:00
hiscore: checksum all the regions (nw)
This commit is contained in:
parent
5195d772c7
commit
be431bd5a0
@ -170,13 +170,11 @@ function hiscore.startplugin()
|
|||||||
|
|
||||||
local function check_scores ( posdata )
|
local function check_scores ( posdata )
|
||||||
local r = 0;
|
local r = 0;
|
||||||
-- commonly the first entry will be for the entire table
|
for ri,row in ipairs(posdata) do
|
||||||
-- so it will only trigger a write once a player enters
|
|
||||||
-- his/her name in.
|
|
||||||
local row = positions[1];
|
|
||||||
for i=0,row["size"]-1 do
|
for i=0,row["size"]-1 do
|
||||||
r = r + row["mem"]:read_u8( row["addr"] + i );
|
r = r + row["mem"]:read_u8( row["addr"] + i );
|
||||||
end
|
end
|
||||||
|
end
|
||||||
return r;
|
return r;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user