forked from Ports/perfect_dark
port: rework config system a bit
This commit is contained in:
1 parent
479c0335f3
commit
fbae610a3b
12 files changed
+238
-253
No files matched your search
@@ -546,6 +546,7 @@ extern f32 g_PlayerFovZoomMultiplier;
|
||||
extern s32 g_PlayerClassicCrouch;
|
||||
extern f32 g_ViShakeIntensityMult;
|
||||
extern u32 g_TexFilter2D;
|
||||
extern s32 g_HudCenter;
|
||||
extern u32 g_HudAlignModeL;
|
||||
extern u32 g_HudAlignModeR;
|
||||
extern s32 g_PrevFrameFb;
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
// byteswap macros
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define PD_BSWAP16(x) __builtin_bswap16(x)
|
||||
#define PD_BSWAP32(x) __builtin_bswap32(x)
|
||||
#define PD_BSWAP64(x) __builtin_bswap64(x)
|
||||
@@ -82,4 +82,11 @@
|
||||
#define PD_LEPTR(x) PD_LE32(x)
|
||||
#endif
|
||||
|
||||
// module constructor function attribute
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define PD_CONSTRUCTOR __attribute__((constructor))
|
||||
#else
|
||||
#error "Implement PD_CONSTRUCTOR macro for your compiler."
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user