mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-01 16:53:01 +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/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();
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
#include <rwcore.h>
|
#include <rwcore.h>
|
||||||
#include <rpworld.h>
|
#include <rpworld.h>
|
||||||
|
|
||||||
|
#define RwEngineInstance (*rwengine)
|
||||||
|
|
||||||
|
extern void** rwengine;
|
||||||
|
|
||||||
template<RwRenderState State>
|
template<RwRenderState State>
|
||||||
class RwScopedRenderState
|
class RwScopedRenderState
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue