mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 19:22:22 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
25
dependencies/reboot/Project Reboot 3.0/NetConnection.cpp
vendored
Normal file
25
dependencies/reboot/Project Reboot 3.0/NetConnection.cpp
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "NetConnection.h"
|
||||
|
||||
bool UNetConnection::ClientHasInitializedLevelFor(const AActor* TestActor) const
|
||||
{
|
||||
static auto ClientHasInitializedLevelForAddr = Memcury::Scanner::FindPattern("48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC 20 48 8B 5A 20 48 8B F1 4C 8B C3", false).Get();
|
||||
|
||||
if (!ClientHasInitializedLevelForAddr)
|
||||
{
|
||||
ClientHasInitializedLevelForAddr = Memcury::Scanner::FindPattern("48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC 20 48 8B 5A 20 48 8B F1 4C 8B C3 48 8D", false).Get(); // 1.8
|
||||
|
||||
if (!ClientHasInitializedLevelForAddr)
|
||||
{
|
||||
ClientHasInitializedLevelForAddr = Memcury::Scanner::FindPattern("48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC 20 48 8B F9 48 85 D2 74 35 48").Get(); // 1.7.2
|
||||
}
|
||||
}
|
||||
|
||||
if (!ClientHasInitializedLevelForAddr)
|
||||
return true;
|
||||
|
||||
static bool (*ClientHasInitializedLevelForOriginal)(const UNetConnection * Connection, const AActor * TestActor)
|
||||
= decltype(ClientHasInitializedLevelForOriginal)(ClientHasInitializedLevelForAddr);
|
||||
// ^ This is virtual but it doesn't really matter
|
||||
|
||||
return ClientHasInitializedLevelForOriginal(this, TestActor);
|
||||
}
|
||||
Reference in New Issue
Block a user