port: rework config system a bit

This commit is contained in:
fgsfds committed 2023-11-04 02:08:44 +01:00
1 parent 479c0335f3
commit fbae610a3b
12 files changed
+238 -253

No files matched your search

+1
View File
@@ -143,6 +143,7 @@ u32 var8007fbc0 = 0x44444400;
u32 var8007fbc4 = 0xffffff00;
#ifndef PLATFORM_N64
s32 g_HudCenter = false;
u32 g_HudAlignModeL = G_ASPECT_LEFT_EXT;
u32 g_HudAlignModeR = G_ASPECT_RIGHT_EXT;
#endif
+1
View File
@@ -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;
+8 -1
View File
@@ -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