fixed s5 crash

This commit is contained in:
Gray
2025-07-19 01:28:37 -04:00
parent 5429dd5768
commit d47287afb8
2 changed files with 11 additions and 7 deletions

View File

@@ -628,6 +628,7 @@ std::vector<uint64> Addresses::GetFunctionsToNull()
std::vector<uint8_t> BytesToFind = Fortnite_Version < 6.3 ? std::vector<uint8_t>{ 0x40, 0x55 } : std::vector<uint8_t>{ 0x48, 0x89, 0x5C };
toNull.push_back(Memcury::Scanner::FindStringRef(L"Widget Class %s - Running Initialize On Archetype, %s.").ScanFor(BytesToFind, false).Get()); // Widget class
toNull.push_back(Memcury::Scanner::FindPattern("48 89 5C 24 ? 48 89 74 24 ? 48 89 7C 24 ? 41 56 48 83 EC 30 41 0F B6 F0 48 8D 15 ? ? ? ? 48 8B F9 41 B8").Get()); // Update Rich Presence
}
if (Engine_Version >= 422

View File

@@ -903,8 +903,11 @@ bool ReplicateActorHook(UActorChannel* Channel)
return ReplicateActorOriginal(Channel);
}
#define CLIENT_ONLY // only console reboot
DWORD WINAPI Main(LPVOID)
{
#ifndef CLIENT_ONLY
InitLogger();
std::cin.tie(0);
@@ -924,6 +927,8 @@ DWORD WINAPI Main(LPVOID)
LOG_INFO(LogInit, "Initializing Project Reboot!");
LOG_INFO(LogDev, "Built on {} {}", __DATE__, __TIME__);
#endif
Addresses::SetupVersion();
NumToSubtractFromSquadId = Engine_Version >= 424 ? 2 : Engine_Version >= 423 ? 3 : 0; // TODO: check this
@@ -938,10 +943,6 @@ DWORD WINAPI Main(LPVOID)
bEnableRebooting = Addresses::RebootingDelegate && Addresses::FinishResurrection && Addresses::GetSquadIdForCurrentPlayer && false;
LOG_INFO(LogDev, "Fortnite_CL: {}", Fortnite_CL);
LOG_INFO(LogDev, "Fortnite_Version: {}", Fortnite_Version);
LOG_INFO(LogDev, "Engine_Version: {}", Engine_Version);
#if 0 // CONSOLE ONLY (FOR CLIENT)
SetConsoleTitleA("Console");
@@ -953,12 +954,14 @@ DWORD WINAPI Main(LPVOID)
auto ViewportConsolePtr = GameViewport->GetPtr("ViewportConsole");
*ViewportConsolePtr = UGameplayStatics::SpawnObject(FindObject<UClass>(L"/Script/Engine.Console"), GameViewport);
LOG_INFO(LogDev, "Spawned Console! Exiting");
nPnn
return 0;
#endif
LOG_INFO(LogDev, "Fortnite_CL: {}", Fortnite_CL);
LOG_INFO(LogDev, "Fortnite_Version: {}", Fortnite_Version);
LOG_INFO(LogDev, "Engine_Version: {}", Engine_Version);
#ifdef ABOVE_S20
if (Fortnite_Version < 20)
{