I'd like to see memory-based versions of emuReadBattery/emuWriteBattery included. Mem based saves can be very important for porting to different platforms - for VBA Wii I need it for saving via network, for example.
Â
This would be the same idea as emuReadMemState/emuWriteMemState vs emuReadState/emuWriteState. Actually what I'd really suggest (for ease of your code maintenance) is to scrap the file-dependent functions for states/batteries and replace them with memory versions only. The file I/O can be handled in the specific port code before/after using the "emu" functions. Switching from file IO to memory IO is extremely simple. I've actually already written memory-based battery functions for the VBA-M Wii port but I'd love to see this in the VBA-M code itself - it would make updating my port easier.