mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-06 11:13:01 +05:00
SilentPatch: Move RwEngineInstance definition to separate headers
MinGW GCC's linker will fail to find it in Common.cpp/SilentPatchVC.cpp otherwise
This commit is contained in:
parent
976adef33f
commit
273e7c1790
3 changed files with 9 additions and 3 deletions
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
#define RwEngineInstance (*rwengine)
|
||||||
|
|
||||||
|
extern "C" void** rwengine;
|
||||||
|
|
||||||
namespace ExtraCompSpecularity
|
namespace ExtraCompSpecularity
|
||||||
{
|
{
|
||||||
void ReadExtraCompSpecularityExceptions(const wchar_t* pPath);
|
void ReadExtraCompSpecularityExceptions(const wchar_t* pPath);
|
||||||
|
@ -15,4 +19,4 @@ namespace Common
|
||||||
void III_VC_Common();
|
void III_VC_Common();
|
||||||
void III_VC_SetDelayedPatchesFunc( void(*func)() );
|
void III_VC_SetDelayedPatchesFunc( void(*func)() );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
#include "Utils/MemoryMgr.h"
|
#include "Utils/MemoryMgr.h"
|
||||||
#include "Utils/Patterns.h"
|
#include "Utils/Patterns.h"
|
||||||
|
|
||||||
#define RwEngineInstance (*rwengine)
|
|
||||||
|
|
||||||
#include <rwcore.h>
|
#include <rwcore.h>
|
||||||
#include "RWGTA.h"
|
#include "RWGTA.h"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#define RwEngineInstance (*rwengine)
|
||||||
|
|
||||||
|
extern void** rwengine;
|
||||||
|
|
||||||
namespace RWGTA::Patches
|
namespace RWGTA::Patches
|
||||||
{
|
{
|
||||||
bool TryLocateRwD3D8();
|
bool TryLocateRwD3D8();
|
||||||
|
|
Loading…
Reference in a new issue