Page 2 of 2

reading/writing save states

Posted: Fri Oct 31, 2008 10:35 am
by Squall Leonhart

so the int should be dynamic, rather then static?


reading/writing save states

Posted: Fri Oct 31, 2008 5:44 pm
by spacy51

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.


reading/writing save states

Posted: Mon Nov 03, 2008 7:58 pm
by Squall Leonhart

oh, that makes complete sense now.


reading/writing save states

Posted: Mon Aug 31, 2009 12:34 pm
by lanceaugust31

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:

 

 


Freelance writing