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: 31
Joined: 17 May 2014, 07:52

Re: OpenMW 0.33.0

Post by EmperorArthur » 13 Nov 2014, 13:00

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
Contact:

Re: OpenMW 0.33.0

Post by scrawl » 13 Nov 2014, 13:11

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: 4275
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Re: OpenMW 0.33.0

Post by psi29a » 13 Nov 2014, 14:02

On my other project, WildMIDI, we use Cmake to do Endianess testing and set a define in a common header file.

Chris
Posts: 1500
Joined: 04 Sep 2011, 08:33

Re: OpenMW 0.33.0

Post by Chris » 13 Nov 2014, 14:44

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
Contact:

Re: OpenMW 0.33.0

Post by scrawl » 13 Nov 2014, 14:47

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

Who is online

Users browsing this forum: No registered users and 11 guests