Added Starfield. Removed unnecessary includes.
This commit is contained in:
@@ -73,19 +73,19 @@
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<TargetName>IndianaJonesTGCCore</TargetName>
|
||||
<TargetExt>.asi</TargetExt>
|
||||
<TargetExt>.dll</TargetExt>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<TargetName>IndianaJonesTGCCore</TargetName>
|
||||
<TargetExt>.asi</TargetExt>
|
||||
<TargetExt>.dll</TargetExt>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<TargetName>IndianaJonesTGCCore</TargetName>
|
||||
<TargetExt>.asi</TargetExt>
|
||||
<TargetExt>.dll</TargetExt>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<TargetName>IndianaJonesTGCCore</TargetName>
|
||||
<TargetExt>.asi</TargetExt>
|
||||
<TargetExt>.dll</TargetExt>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
|
||||
@@ -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
|
||||
@@ -57,6 +55,7 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled)
|
||||
{
|
||||
g_fix_enabled = enabled;
|
||||
if (g_fix_enabled && !AOBScanDone) {
|
||||
logger->info("--------------- AOB scan started ---------------");
|
||||
if (FOVaddress == nullptr) {
|
||||
constexpr auto FOVStringObfuscated = make_obfuscated<0x4A>("F3 44 ?? ?? ?? ?? 48 8B ?? ?? ?? 4C ?? ?? 49 0F ?? ?? ?? ?? ?? ?? 4C 8D");
|
||||
FOVaddress = Memory::aob_scan(gameExecutable, FOVStringObfuscated.decrypt(), PAGE_EXECUTE_READ);
|
||||
@@ -89,7 +88,7 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled)
|
||||
}
|
||||
if (FOVaddress && CinematicsFOVaddress && CinematicsFTaddress) {
|
||||
logger->info("All AOB signatures found. Ready to patch...");
|
||||
logger->info("--------------- AOB scanning finished ---------------");
|
||||
logger->info("--------------- AOB scan finished ---------------");
|
||||
AOBScanDone = true;
|
||||
}
|
||||
}
|
||||
@@ -157,6 +156,7 @@ extern "C" __declspec(dllexport) float GetCinematicsFOVOut() {
|
||||
return g_Cinematics_FOV_Out;
|
||||
}
|
||||
|
||||
// Injection functions
|
||||
static void FOVFixEnabled(bool fix_enabled) {
|
||||
if (g_fix_enabled && fix_enabled && FOVaddress != nullptr) {
|
||||
if (!FOVHook) { // Hook only once
|
||||
|
||||
Reference in New Issue
Block a user