so the int should be dynamic, rather then static?
reading/writing save states
-
- Posting Freak
- Posts: 1223
- Joined: Tue Mar 18, 2008 9:21 am
reading/writing save states
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.
-
- Posting Freak
- Posts: 1223
- Joined: Tue Mar 18, 2008 9:21 am
reading/writing save states
oh, that makes complete sense now.
-
- Junior Member
- Posts: 1
- Joined: Mon Aug 31, 2009 12:27 pm
reading/writing save states
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:
Â
Â