Added Starfield. Removed unnecessary includes.

This commit is contained in:
2025-07-25 15:07:43 +02:00
parent 0fbf01b0a5
commit 35071ccc94
27 changed files with 590 additions and 89 deletions

View File

@@ -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
@@ -53,7 +51,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>("EB ?? F3 0F ?? ?? ?? ?? ?? ?? F3 0F ?? ?? ?? 8B 83 ?? ?? ?? ?? 89");
FOVaddress = Memory::aob_scan(gameExecutable, FOVStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
@@ -83,7 +81,7 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled)
if (FOVaddress != nullptr && Aspectaddress != nullptr && DOFaddress != nullptr)
logger->info("All AOB signatures found. Ready to patch...");
if (FOVaddress && Aspectaddress && DOFaddress) AOBScanDone = true;
logger->info("--------------- AOB scanning finished ---------------");
logger->info("--------------- AOB scan finished ---------------");
}
}
if (g_fix_enabled) {