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 a3d9c73a8b
commit 109e1c67f4
4 changed files with 5 additions and 5 deletions

View file

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

View file

@ -2,6 +2,8 @@
#include <cstdint>
extern char** ppUserFilesDir;
namespace Common
{
namespace Patches

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;
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;
NOBUFFERCHECKS int32_t GetTimeSinceLastFrame()