How to make games cross platform?

Miscellaneous Forums/General Discussion/How to make games cross platform?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

[quote]It's actually that the bytes are in the opposite order, not the integers, but yeah. [quote]Yeah I know that, the 32bit integer (4 bytes) is stored one way on the Intel chips and this is the wrong way (backwards) for PPCs. Using streams with just text files (which I often do so they can be edited manually if need be) is totally safe (although I wonder about Unicode files which store each char as 2 byes - anyone know (I could test it at some point but not right now)).

So instead of using an TEndianStream I think you can just put "littleendian::" before the filename you are reading in and then it knows what to do. This is best if most of your development is done on a PC.