-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Big Endian support ? #397
Comments
Yep, it's in plan for the new version of engine ("fixed" folder), it's already compatible with BE due 3DO support, but the code isn't complete and it uses pre-converted levels format. |
Mac PPC folks will also be thankful! |
@Kroc yep, I've iBook G4 for this reason 8) |
Ok, Thank you for your answer. |
I had to do some work in this area to get OpenLara running on the Nintendo 64. Of paticular interest is Also look for any bitfields and associated unions in the struct definitions in that file, they needed to be modified. |
@jnmartin84 hi, Stream class already has readBE16 and readBE32 |
Sure, understood. My original intent was to introduce a compile-time check/define for endianness and eventually work through all of the uses of read_/read_LE/read_BE and make them behave appropriately regardless of host platform vs data platform endianness. I never finished working that through, but I was able to identify all of the code with little-endian assumptions on a big-endian platform (particularly the code that read structures from disk in a single read rather than reading individual fields and byte/word swapping as necessary). I can finish working that through so there is better platform independence in the data file loaders, if that is of interest to you/you haven't already done that work for the future. Whenever your "fixed" branch is mature I can move things over to that. This was a personal/free time challenge, the deprecated main/floating-point version works better than expected given how the code is written. |
Hi, i port some program to MorphOS but platform is BE, opengl 1.2 and no shaders (seem ok for 2 last point)...
I try to compile OpenLara but seem not bigendian compatible.
Have you plan to fix it ? plaform concern : XBox360, PS3, Wii and AmigaOS compatible
Thanks you
The text was updated successfully, but these errors were encountered: