reading/writing save states
Posted: Fri Oct 31, 2008 10:35 am
so the int should be dynamic, rather then static?
The continuing development of the legendary VBA gameboy advance emulator.
https://board.visualboyadvance-m.org/
so the int should be dynamic, rather then static?
so the int should be dynamic, rather then static?
Â
No, the other way round. Instead of sizeof(int), which may vary depending on the compiler/platform, we should use a static number of bytes per value, and declare the file as little-endian.
oh, that makes complete sense now.
When reading or writing to a save state, the core uses sizeof() to determine the number of bytes to read. what should we do if in that case? :badger:
Â
Â