SilentPatch: Move RwEngineInstance definition to headers

MinGW GCC can't locate it in some files otherwise
This commit is contained in:
Echo J 2024-11-13 18:49:03 +02:00
parent 4ba23dbf75
commit 77f5e908c0
3 changed files with 9 additions and 3 deletions

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();

View file

@ -3,6 +3,10 @@
#include <rwcore.h>
#include <rpworld.h>
#define RwEngineInstance (*rwengine)
extern void** rwengine;
template<RwRenderState State>
class RwScopedRenderState
{
@ -68,4 +72,4 @@ Pred RpGeometryForAllMaterials(RpGeometry* geometry, Pred callback)
break;
}
return callback;
}
}