08-25-2019, 11:40 AM
(This post was last modified: 08-25-2019, 11:43 AM by TheFreezingChicken.)
Hi, I tried to do a quick search on Google, on the site and here on the forums, but I didn't have any luck.
Basically what I want to achieve is reading a few bytes from a specific address of the emulated RAM of the game (the reading is done from a little program I'm working on).
My idea was to read from a save state (quick to save for the user and easy to detect changes) but I noticed that on mGBA save states hava some kind of compression applied to them, so I can't use them in the intended way. I know about the memory viewer and the selection dumping feature but that's only manual and I was looking for an automatic one-keystroke kind of solution.
So my questions are:
Is there a way to make mGBA save the whole raw emulated RAM in the save state?
If not, is there a way in mGBA to make the memory dump process automatic?
If not, what are some possible ways (if there are any) to read the emulated RAM directly from within my program?
(I don't know much abot low-level stuff and memory access but if pointed in the right direction I can learn for myself no problem, I only need a starting point. Also I don't know if mGBA itself exposes some APIs for accessing it)
Basically what I want to achieve is reading a few bytes from a specific address of the emulated RAM of the game (the reading is done from a little program I'm working on).
My idea was to read from a save state (quick to save for the user and easy to detect changes) but I noticed that on mGBA save states hava some kind of compression applied to them, so I can't use them in the intended way. I know about the memory viewer and the selection dumping feature but that's only manual and I was looking for an automatic one-keystroke kind of solution.
So my questions are:
Is there a way to make mGBA save the whole raw emulated RAM in the save state?
If not, is there a way in mGBA to make the memory dump process automatic?
If not, what are some possible ways (if there are any) to read the emulated RAM directly from within my program?
(I don't know much abot low-level stuff and memory access but if pointed in the right direction I can learn for myself no problem, I only need a starting point. Also I don't know if mGBA itself exposes some APIs for accessing it)