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

@@ -73,19 +73,19 @@
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<TargetName>DeadSpace2023Core</TargetName>
<TargetExt>.asi</TargetExt>
<TargetExt>.dll</TargetExt>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<TargetName>DeadSpace2023Core</TargetName>
<TargetExt>.asi</TargetExt>
<TargetExt>.dll</TargetExt>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<TargetName>DeadSpace2023Core</TargetName>
<TargetExt>.asi</TargetExt>
<TargetExt>.dll</TargetExt>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<TargetName>DeadSpace2023Core</TargetName>
<TargetExt>.asi</TargetExt>
<TargetExt>.dll</TargetExt>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>

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
@@ -40,7 +38,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 ---------------");
constexpr auto FOVStringObfuscated = make_obfuscated<0x4A>("F3 0F ?? ?? ?? ?? ?? ?? 0F 2F ?? ?? ?? ?? ?? 77 ?? 48 8B ?? ?? ?? ?? ?? F3 0F ?? ?? ?? F3 0F ?? ?? ?? ?? ?? ??");
FOVaddress = Memory::aob_scan(gameExecutable, FOVStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
@@ -51,7 +49,7 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled)
//Dead Space.exe + 1ACB640 - 5B - pop rbx
if (!FOVaddress) {
logger->warn("FOV signature not found. Maybe your game has been updated and is no more compatible with this plugin.");
logger->info("--------------- AOB scanning finished ---------------");
logger->info("--------------- AOB scan finished ---------------");
}
else {
logger->info("FOV signature found at address: 0x{:X}.", reinterpret_cast<uintptr_t>(FOVaddress));