SilentPatchIII/VC: Remove extern from ppUserFilesDir variable definitions

This fixes compile warnings with MinGW GCC
This commit is contained in:
Echo J 2024-11-07 00:42:44 +02:00
parent 9cbc846dbd
commit 277515a56b
4 changed files with 5 additions and 5 deletions

View file

@ -15,8 +15,6 @@
#pragma comment(lib, "shlwapi.lib") #pragma comment(lib, "shlwapi.lib")
extern char** ppUserFilesDir;
namespace Common { namespace Common {
char* GetMyDocumentsPath() char* GetMyDocumentsPath()
{ {

View file

@ -2,6 +2,8 @@
#include <cstdint> #include <cstdint>
extern char** ppUserFilesDir;
namespace Common namespace Common
{ {
namespace Patches namespace Patches
@ -18,4 +20,4 @@ namespace Common
void DDraw_Common(); void DDraw_Common();
} }
}; };

View file

@ -377,7 +377,7 @@ __declspec(naked) void RadarBoundsCheckEntityBlip()
} }
} }
extern char** ppUserFilesDir = AddressByVersion<char**>(0x580C16, 0x580F66, 0x580E66); char** ppUserFilesDir = AddressByVersion<char**>(0x580C16, 0x580F66, 0x580E66);
static LARGE_INTEGER FrameTime; static LARGE_INTEGER FrameTime;
NOBUFFERCHECKS int32_t GetTimeSinceLastFrame() NOBUFFERCHECKS int32_t GetTimeSinceLastFrame()

View file

@ -696,7 +696,7 @@ __declspec(naked) void CreateInstance_BikeFix()
} }
} }
extern char** ppUserFilesDir = AddressByVersion<char**>(0x6022AA, 0x60228A, 0x601ECA); char** ppUserFilesDir = AddressByVersion<char**>(0x6022AA, 0x60228A, 0x601ECA);
static LARGE_INTEGER FrameTime; static LARGE_INTEGER FrameTime;
NOBUFFERCHECKS int32_t GetTimeSinceLastFrame() NOBUFFERCHECKS int32_t GetTimeSinceLastFrame()