-
Notifications
You must be signed in to change notification settings - Fork 54
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 fixes #135
Big endian fixes #135
Conversation
Thanks! On what platforms have you tested this?
|
Yes, please don't just |
It looks like TestBigEndian is deprecated, can CMAKE_C_BYTE_ORDER be used here? The save game code should be easy to fix, I'll make SWAP32_BE a no-op if BR_ENDIAN_BIG is 1. |
That's fine to me. @dethrace-labs. WDYT? CMake 3.20 is widely available by now. Don't forget to bump the the minimum required version. |
Just to clarify I'm not very familiar with CMake, so I don't insist on using the newer method. I'll look into whichever way you say would suit the project better. |
Yep, I like the use of |
I'm not at my usual setup so I tried to use WSL2 to test my changes. It turns out Ubuntu Bionic only has CMake 3.10.2 so I tried to use the older method. I added this to the root CMakeLists.txt, but it doesn't seem to change the generated Makefile:
Maybe I put this in the wrong place? @madebr Sorry, I was so preoccupied with CMake that I forgot to answer your original question. I tested this on the Amiga. |
Because you're using
Nice. Tested on a real Amiga or an emulated one? |
I see, thanks. I'll try fiddle around with this after work.
Only in emulation for now, the lack of software renderer is a big roadblock. I cobbled together some code to draw wireframe models, but it's quick just a test, very buggy and slow. I'm still contemplating what to do about this, as OpenGL is not an option on 25 year old hardware. |
that sounds awesome! Could you post a couple of screenshots!? |
looks awesome :) |
I'm not a CMake expert at all, but heres what I tried: In the top-level
above In
In
A similar pattern should be added to It seems to set the value correctly as seen by the pre-processor. Maybe give that a try? |
May I post your screenshot on the https://twitter.com/dethrace_labs twitter feed? |
Of course, if you think it's interesting feel free to post it. I'll rebase the PR and implement the changes you have suggested. |
This could be useful for porting Dethrace to XB360, PS3, Wii consoles, or perhaps more obscure platforms.