From 80b4fa1ece825b2fb2ff7838eff684df73cf4f38 Mon Sep 17 00:00:00 2001 From: Echo J Date: Mon, 4 Nov 2024 16:35:45 +0200 Subject: [PATCH] SilentPatch: Don't define certain Rw* functions if not needed Redefining them can cause strange compile errors with MinGW GCC --- SilentPatch/RWGTA.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SilentPatch/RWGTA.cpp b/SilentPatch/RWGTA.cpp index fc64513..cb5cad6 100644 --- a/SilentPatch/RWGTA.cpp +++ b/SilentPatch/RWGTA.cpp @@ -52,6 +52,7 @@ void RwD3D8GetRenderState(RwUInt32 state, void* value) fnRwD3D8GetRenderState(state, value); } +#ifndef RwIm2DGetNearScreenZ RwReal RwIm2DGetNearScreenZ() { return RWSRCGLOBAL(dOpenDevice).zBufferNear; @@ -66,6 +67,7 @@ RwBool RwRenderStateSet(RwRenderState state, void *value) { return RWSRCGLOBAL(dOpenDevice).fpRenderStateSet(state, value); } +#endif // Unreachable stub RwBool RwMatrixDestroy(RwMatrix* /*mpMat*/) { assert(!"Unreachable!"); return TRUE; }