summaryrefslogtreecommitdiff
path: root/src/fixer.h
diff options
context:
space:
mode:
authorgaa-cifasis <gg@cifasis-conicet.gov.ar>2018-02-18 18:48:51 -0300
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 03:56:27 +0200
commit310cf0da7cf4186fde42222e6835d5a8ad485c8a (patch)
tree89dc7bb9bdb692a42a77ed57755d1d7f5211e7cf /src/fixer.h
parent7aea1acf4490b7d68f6915cf63d28c1f18b49b5d (diff)
merged support for playing bink cutscenes and added 1366x768 resolution
Diffstat (limited to 'src/fixer.h')
-rw-r--r--src/fixer.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fixer.h b/src/fixer.h
index 5164542..288d22c 100644
--- a/src/fixer.h
+++ b/src/fixer.h
@@ -152,6 +152,18 @@ typedef unsigned __int64 uint64_t;
#define FILE_ATTRIBUTE_DIRECTORY 0x1000
#define FILE_ATTRIBUTE_NORMAL 0x2000
+#if defined(__BIG_ENDIAN__)
+ extern void DoByteSwap2(void* x);
+ extern void DoByteSwap4(void* x);
+ extern void DoByteSwap8(void* x);
+ #define BYTESWAP2(x) DoByteSwap2((void*)&x);
+ #define BYTESWAP4(x) DoByteSwap4((void*)&x);
+ #define BYTESWAP8(x) DoByteSwap8((void*)&x);
+#else
+ #define BYTESWAP2(x) {}
+ #define BYTESWAP4(x) {}
+ #define BYTESWAP8(x) {}
+#endif
HANDLE CreateFile(const char *file, int write, int x, int y, int flags, int flags2, int z);
HANDLE CreateFileA(const char *file, int write, int x, int y, int flags, int flags2, int z);