From d2d5693d45415cb20e5c9d1495eccefde00907a0 Mon Sep 17 00:00:00 2001 From: HenBagle Date: Sun, 22 Aug 2021 22:58:27 -0400 Subject: [PATCH] Add new find pattern macro to SeqActLog Enabler, update ASI versions --- KismetLogger/KismetLogger.cpp | 4 ++-- LE1StreamingLevelsHUD/LE1StreamingLevelsHUD.cpp | 2 +- SeqActLog Enabler/LE1SeqActLogEnabler.cpp | 17 ++++------------- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/KismetLogger/KismetLogger.cpp b/KismetLogger/KismetLogger.cpp index 41e30a4..5d91fa6 100644 --- a/KismetLogger/KismetLogger.cpp +++ b/KismetLogger/KismetLogger.cpp @@ -13,11 +13,11 @@ #define MYHOOK "KismetLogger_" -SPI_PLUGINSIDE_SUPPORT(L"KismetLogger", L"1.0.0", L"HenBagle", SPI_GAME_LE1, SPI_VERSION_ANY); +SPI_PLUGINSIDE_SUPPORT(L"KismetLogger", L"2.0.0", L"HenBagle", SPI_GAME_LE1, SPI_VERSION_ANY); SPI_PLUGINSIDE_POSTLOAD; SPI_PLUGINSIDE_ASYNCATTACH; -ME3TweaksASILogger logger("Kismet Logger v1", "KismetLog.txt"); +ME3TweaksASILogger logger("Kismet Logger v2", "KismetLog.txt"); diff --git a/LE1StreamingLevelsHUD/LE1StreamingLevelsHUD.cpp b/LE1StreamingLevelsHUD/LE1StreamingLevelsHUD.cpp index 5dca629..1cc8051 100644 --- a/LE1StreamingLevelsHUD/LE1StreamingLevelsHUD.cpp +++ b/LE1StreamingLevelsHUD/LE1StreamingLevelsHUD.cpp @@ -11,7 +11,7 @@ #define SLHHOOK "LE1StreamingLevelsHUD_" -SPI_PLUGINSIDE_SUPPORT(L"LE1StreamingLevelsHUD", L"Mgamerz", L"1.0.0", SPI_GAME_LE1, SPI_VERSION_LATEST); +SPI_PLUGINSIDE_SUPPORT(L"LE1StreamingLevelsHUD", L"Mgamerz", L"2.0.0", SPI_GAME_LE1, SPI_VERSION_LATEST); SPI_PLUGINSIDE_POSTLOAD; SPI_PLUGINSIDE_ASYNCATTACH; diff --git a/SeqActLog Enabler/LE1SeqActLogEnabler.cpp b/SeqActLog Enabler/LE1SeqActLogEnabler.cpp index 2332cfb..cfef6a2 100644 --- a/SeqActLog Enabler/LE1SeqActLogEnabler.cpp +++ b/SeqActLog Enabler/LE1SeqActLogEnabler.cpp @@ -14,12 +14,12 @@ #define MYHOOK "LE1SeqActLogEnabler_" -SPI_PLUGINSIDE_SUPPORT(L"LE1SeqActLogEnabler", L"1.0.0", L"HenBagle", SPI_GAME_LE1, SPI_VERSION_ANY); +SPI_PLUGINSIDE_SUPPORT(L"LE1SeqActLogEnabler", L"2.0.0", L"HenBagle", SPI_GAME_LE1, SPI_VERSION_ANY); SPI_PLUGINSIDE_POSTLOAD; SPI_PLUGINSIDE_ASYNCATTACH; -ME3TweaksASILogger logger("SeqAct_Log Enabler v1", "SeqActLog.txt"); -ScreenLogger screenLogger(L"SeqAct_Log Enabler v1"); +ME3TweaksASILogger logger("SeqAct_Log Enabler v2", "SeqActLog.txt"); +ScreenLogger screenLogger(L"SeqAct_Log Enabler v2"); std::wstringstream& operator<<(std::wstringstream& ss, const FString& fStr) @@ -118,17 +118,8 @@ SPI_IMPLEMENT_ATTACH Common::OpenConsole(); auto _ = SDKInitializer::Instance(); - writeln(L"Attach - names at 0x%p, objects at 0x%p", - SDKInitializer::Instance()->GetBioNamePools(), - SDKInitializer::Instance()->GetObjects()); - - if (auto rc = InterfacePtr->FindPattern((void**)&ProcessEvent, "40 55 41 56 41 57 48 81 EC 90 00 00 00 48 8D 6C 24 20"); - rc != SPIReturn::Success) - { - writeln(L"Attach - failed to find ProcessEvent pattern: %d / %s", rc, SPIReturnToString(rc)); - return false; - } + INIT_FIND_PATTERN_POSTHOOK(ProcessEvent, /* 40 55 41 56 41 */ "57 48 81 EC 90 00 00 00 48 8D 6C 24 20"); if (auto rc = InterfacePtr->InstallHook(MYHOOK "ProcessEvent", ProcessEvent, ProcessEvent_hook, (void**)&ProcessEvent_orig); rc != SPIReturn::Success)