mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 23:33:02 +05:00
SilentPatchIII/VC: Remove extern from ppUserFilesDir variable definitions
This fixes compile warnings with MinGW GCC
This commit is contained in:
parent
9cbc846dbd
commit
277515a56b
4 changed files with 5 additions and 5 deletions
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue