mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-11-22 05:22:32 +01:00
Fix warnings
This commit is contained in:
parent
75a3f16ffb
commit
7d1bd8a9ac
@ -68,14 +68,14 @@ RwBool RwRenderStateSet(RwRenderState state, void *value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unreachable stub
|
// Unreachable stub
|
||||||
RwBool RwMatrixDestroy(RwMatrix* mpMat) { assert(!"Unreachable!"); return TRUE; }
|
RwBool RwMatrixDestroy(RwMatrix* /*mpMat*/) { assert(!"Unreachable!"); return TRUE; }
|
||||||
|
|
||||||
bool RWGTA::Patches::TryLocateRwD3D8() try
|
bool RWGTA::Patches::TryLocateRwD3D8() try
|
||||||
{
|
{
|
||||||
using namespace Memory;
|
using namespace Memory;
|
||||||
using namespace hook::txn;
|
using namespace hook::txn;
|
||||||
|
|
||||||
auto fnRwD3D8SetRenderState = [] {
|
auto pfnRwD3D8SetRenderState = [] {
|
||||||
try {
|
try {
|
||||||
// Everything except for III Steam
|
// Everything except for III Steam
|
||||||
return static_cast<decltype(RwD3D8SetRenderState)*>(get_pattern("39 0C C5 ? ? ? ? 74 31", -8));
|
return static_cast<decltype(RwD3D8SetRenderState)*>(get_pattern("39 0C C5 ? ? ? ? 74 31", -8));
|
||||||
@ -84,7 +84,7 @@ bool RWGTA::Patches::TryLocateRwD3D8() try
|
|||||||
return static_cast<decltype(RwD3D8SetRenderState)*>(get_pattern("8B 0C C5 ? ? ? ? 3B CA", -8));
|
return static_cast<decltype(RwD3D8SetRenderState)*>(get_pattern("8B 0C C5 ? ? ? ? 3B CA", -8));
|
||||||
}
|
}
|
||||||
}();
|
}();
|
||||||
auto fnRwD3D8GetRenderState = [] {
|
auto pfnRwD3D8GetRenderState = [] {
|
||||||
try {
|
try {
|
||||||
// Everything except for III Steam
|
// Everything except for III Steam
|
||||||
return static_cast<decltype(RwD3D8GetRenderState)*>(get_pattern("8B 0C C5 ? ? ? ? 89 0A C3", -8));
|
return static_cast<decltype(RwD3D8GetRenderState)*>(get_pattern("8B 0C C5 ? ? ? ? 89 0A C3", -8));
|
||||||
@ -94,8 +94,8 @@ bool RWGTA::Patches::TryLocateRwD3D8() try
|
|||||||
}
|
}
|
||||||
}();
|
}();
|
||||||
|
|
||||||
::fnRwD3D8SetRenderState = fnRwD3D8SetRenderState;
|
fnRwD3D8SetRenderState = pfnRwD3D8SetRenderState;
|
||||||
::fnRwD3D8GetRenderState = fnRwD3D8GetRenderState;
|
fnRwD3D8GetRenderState = pfnRwD3D8GetRenderState;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (const hook::txn_exception&)
|
catch (const hook::txn_exception&)
|
||||||
|
Loading…
Reference in New Issue
Block a user