Added Starfield. Removed unnecessary includes.
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
#include "Memory.hpp";
|
||||
#include "Maths.hpp";
|
||||
#include "ObfuscateString.h"
|
||||
#include <Windows.h>
|
||||
#include <string>
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <spdlog/sinks/basic_file_sink.h>
|
||||
#include <iostream>
|
||||
#include <safetyhook.hpp>
|
||||
|
||||
// Constants
|
||||
@@ -51,7 +49,7 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled)
|
||||
g_fix_enabled = enabled;
|
||||
|
||||
if (g_fix_enabled && !AOBScanDone) {
|
||||
logger->info("--------------- AOB scanning started ---------------");
|
||||
logger->info("--------------- AOB scan started ---------------");
|
||||
if (FOVaddress == nullptr) {
|
||||
constexpr auto FOVStringObfuscated = make_obfuscated<0x4A>("90 0F ?? ?? 48 8B 8C ?? ?? ?? ?? ?? 48 ?? ?? E8 ?? ?? ?? ?? 0F 28");
|
||||
FOVaddress = Memory::aob_scan(gameExecutable, FOVStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
|
||||
@@ -85,7 +83,7 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled)
|
||||
}
|
||||
if (FOVaddress != nullptr && Aspectaddress != nullptr) {
|
||||
logger->info("All AOB signatures found. Ready to patch...");
|
||||
logger->info("--------------- AOB scanning finished ---------------");
|
||||
logger->info("--------------- AOB scan finished ---------------");
|
||||
AOBScanDone = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user