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:
Echo J 2024-11-07 09:13:58 +02:00
parent 976adef33f
commit 273e7c1790
3 changed files with 9 additions and 3 deletions

View file

@ -2,6 +2,10 @@
#include <cstdint>
#define RwEngineInstance (*rwengine)
extern "C" void** rwengine;
namespace ExtraCompSpecularity
{
void ReadExtraCompSpecularityExceptions(const wchar_t* pPath);
@ -15,4 +19,4 @@ namespace Common
void III_VC_Common();
void III_VC_SetDelayedPatchesFunc( void(*func)() );
}
};
};

View file

@ -1,8 +1,6 @@
#include "Utils/MemoryMgr.h"
#include "Utils/Patterns.h"
#define RwEngineInstance (*rwengine)
#include <rwcore.h>
#include "RWGTA.h"

View file

@ -1,5 +1,9 @@
#pragma once
#define RwEngineInstance (*rwengine)
extern void** rwengine;
namespace RWGTA::Patches
{
bool TryLocateRwD3D8();