OpenMW 0.33.0

Anything related to PR, release planning and any other non-technical idea how to move the project forward should be discussed here.
User avatar
EmperorArthur
Posts: 33
Joined: 17 May 2014, 07:52

Re: OpenMW 0.33.0

Post by EmperorArthur »

I'll have to see if there's a way for the compiler to tell if it's compiling for a big endian architecture or not. I suspect there is, but haven't looked. If there is, it should be pretty easy to make the changes needed to read nif files on a big endian machine.
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: OpenMW 0.33.0

Post by scrawl »

There was some work my dougmencken on endian-awareness quite a while ago. I think he had it in a sort-of working state. You might want to check out his fork to see where it's at.
Edit: soft-of -> sort-of :D
User avatar
psi29a
Posts: 5360
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: OpenMW 0.33.0

Post by psi29a »

On my other project, WildMIDI, we use Cmake to do Endianess testing and set a define in a common header file.
Chris
Posts: 1626
Joined: 04 Sep 2011, 08:33

Re: OpenMW 0.33.0

Post by Chris »

I think most compilers have certain macros predefined to specify which endian the target system is. I also know for certain that Ogre defines some macros for it.
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: OpenMW 0.33.0

Post by scrawl »

The cmake approach seems sensible. I'd prefer not to drag in Ogre headers everywhere. They are pretty bloated with other compiler-specific stuff (noticed that the other week when I ran cppcheck and it took hours with testing all the code paths enabled).
Post Reply