mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 07:13:02 +05:00
SilentPatch: Move RwEngineInstance definition to headers
MinGW GCC can't locate it in some files otherwise
This commit is contained in:
parent
4ba23dbf75
commit
77f5e908c0
3 changed files with 9 additions and 3 deletions
|
@ -1,8 +1,6 @@
|
|||
#include "Utils/MemoryMgr.h"
|
||||
#include "Utils/Patterns.h"
|
||||
|
||||
#define RwEngineInstance (*rwengine)
|
||||
|
||||
#include <rwcore.h>
|
||||
#include "RWGTA.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#define RwEngineInstance (*rwengine)
|
||||
|
||||
extern void** rwengine;
|
||||
|
||||
namespace RWGTA::Patches
|
||||
{
|
||||
bool TryLocateRwD3D8();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue