feat(network): Add Random Event Launcher (#138)

This commit is contained in:
Arthur authored and GitHub committed 2025-04-09 19:15:45 +00:00
1 parent 3de5ac6612
commit 95851e256b
12 files changed
+477 -6

No files matched your search

+5
View File
@@ -303,6 +303,11 @@ namespace YimMenu
GetSessionByGamerHandle = ptr.Sub(0x4A).Add(1).Rip().As<Functions::GetSessionByGamerHandle>();
});
constexpr auto networkTimePtrn = Pattern<"89 05 ? ? ? ? 80 3D ? ? ? ? ? 0F 84 ? ? ? ? E9">("NetworkTime");
scanner.Add(networkTimePtrn, [this](PointerCalculator ptr) {
NetworkTime = ptr.Add(2).Rip().As<std::uint32_t*>();
});
if (!scanner.Scan())
{
LOG(FATAL) << "Some patterns could not be found, unloading.";