> Hey > > I'm trying to hack a score tracking system in tgm2p (basically just dumping the final > score and a timestamp to a text file) for fun, and I'm using this > sh2->program->read_byte(0x06064BBB) to read the score on "sh2drc.c" inside the > do...while on CPU_EXECUTE. > > Is there a better way to this?
Assuming you only want to read that score at the end of the game, adding a MACHINE_STOP handler to the driver and doing the read there would be a much, much better idea. Or just run -debug, hit tilde when it's time to pull up the score, and save the relevant memory bytes to a file ("help memory" will tell you how to do that).
|