Added Starfield. Removed unnecessary includes.
This commit is contained in:
@@ -73,19 +73,19 @@
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<TargetName>UnchartedLOTCCore</TargetName>
|
||||
<TargetExt>.asi</TargetExt>
|
||||
<TargetExt>.dll</TargetExt>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<TargetName>UnchartedLOTCCore</TargetName>
|
||||
<TargetExt>.asi</TargetExt>
|
||||
<TargetExt>.dll</TargetExt>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<TargetName>UnchartedLOTCCore</TargetName>
|
||||
<TargetExt>.asi</TargetExt>
|
||||
<TargetExt>.dll</TargetExt>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<TargetName>UnchartedLOTCCore</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>
|
||||
#include <filesystem>
|
||||
|
||||
@@ -80,7 +78,7 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled, bool init)
|
||||
|
||||
if (g_fix_enabled && !AOBScanDone) {
|
||||
logger->info("Module {} detected", gameExecutable);
|
||||
logger->info("--------------- AOB scanning started ---------------");
|
||||
logger->info("--------------- AOB scan started ---------------");
|
||||
if (FOVaddress == nullptr) {
|
||||
if (gameExecutable == "u4.exe") {
|
||||
auto FOVStringObfuscated = make_obfuscated<0x4A>("C5 FA ?? ?? ?? ?? ?? ?? C5 F2 ?? ?? ?? ?? ?? ?? C5 7A ?? ?? ?? ?? ?? ?? C5 7A");
|
||||
@@ -161,7 +159,7 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled, bool init)
|
||||
logger->info("All AOB signatures found. Ready to patch...");
|
||||
}
|
||||
if (FOVaddress && PHOTOaddress && CINEMATICSASPECTaddress && Aspectaddress && DOFaddress && EFFECTSaddress) AOBScanDone = true;
|
||||
logger->info("--------------- AOB scanning finished ---------------");
|
||||
logger->info("--------------- AOB scan finished ---------------");
|
||||
}
|
||||
if (g_fix_enabled) {
|
||||
if (FOVaddress) FOVFixEnabled(g_fov_fix_enabled);
|
||||
@@ -269,6 +267,7 @@ static void FOVFixEnabled(bool fix_enabled) {
|
||||
}
|
||||
}
|
||||
|
||||
// Injection functions
|
||||
static void PhotoFOVFixEnabled (bool fix_enabled) {
|
||||
if (g_fix_enabled && fix_enabled && PHOTOaddress) {
|
||||
if (!PhotoFOVHook) { // Hook only once
|
||||
@@ -283,7 +282,6 @@ static void PhotoFOVFixEnabled (bool fix_enabled) {
|
||||
logger->info("Photo FOV fix enabled");
|
||||
}
|
||||
if (!fix_enabled && PHOTOaddress && PhotoFOVHook) {
|
||||
//if (PhotoFOVHook)
|
||||
PhotoFOVHook.disable();
|
||||
logger->info("Photo FOV fix disabled");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user