I have a .dat file that (I believe) stores high scores in advmame
in a file called hiscore.dat
. From what I understand, and I could be wrong, the .dat file stores the game name and the memory address of the high scores for that game:
foogame: ;******foo game
0:6105:9e:10:10
0:7661:1:10:10
0:7641:1:00:00
0:7621:1:00:00
0:7601:1:07:07
0:75e1:1:06:06
0:75c1:1:05:05
0:75a1:1:00:00
In python, is there a way to read the values stored at these memory locations?
Edited - Per the instructions at the top of the file:
;This file should be in the same directory of MAME.EXE .
;
;This file can be edited with a text editor, but keep the same format:
; all fields are separated by a colon (:)
; <gamename>:
; <cpu>:<address>:<length>:<value to wait for
; in the first byte/word>:<value to wait for in the last byte/word>
; [repeat the above as many times as necessary]
Some addition info on the hiscore.dat:
A hiscore.dat file is needed so your modified version of MAME will read to know which memory addresses contain the high scores for supported games.