mirror of
https://github.com/ApfelTeeSaft/UniversalSlashingSimulator.git
synced 2026-08-26 19:33:39 +00:00
Push TODO
This commit is contained in:
@@ -38,3 +38,6 @@
|
||||
|
||||
# debug information files
|
||||
*.dwo
|
||||
/.vs/UniversalSlashingSimulator/CopilotIndices
|
||||
/.vs
|
||||
/obj
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#include "PatternScanner.h"
|
||||
|
||||
uintptr_t PatternScanner::FindGetEngineVersion()
|
||||
{
|
||||
auto Results = Memcury::Scanner::FindPattern("40 53 48 83 EC ?? 48 8B D9 E8 ?? ?? ?? ?? 48 8B C8 41 B8"); // Chapter 1 - Chapter 2
|
||||
if (!Results.IsValid())
|
||||
return -1;
|
||||
|
||||
return Results.Get();
|
||||
}
|
||||
@@ -1 +1,12 @@
|
||||
// TODO: @timmie replace with ur offset finder or whatever lol
|
||||
// TODO: @timmie replace with ur offset finder or whatever lol
|
||||
|
||||
#include "../Common.h"
|
||||
#include "../../../external/memcury/memcury.h"
|
||||
|
||||
class PatternScanner
|
||||
{
|
||||
public:
|
||||
static PatternScanner* Get();
|
||||
public:
|
||||
uintptr_t FindGetEngineVersion();
|
||||
};
|
||||
@@ -382,13 +382,15 @@ namespace USS
|
||||
|
||||
// Pattern for GetEngineVersion (varies by version)
|
||||
// @timmie
|
||||
uintptr_t CLAddr = TAOF::FindPattern(
|
||||
"48 8D 05 ?? ?? ?? ?? C3 CC CC CC CC CC CC CC CC 48 8D 05 ?? ?? ?? ?? C3"
|
||||
);
|
||||
uintptr_t CLAddr = PatternScanner::Get()->FindGetEngineVersion();
|
||||
|
||||
if (CLAddr)
|
||||
if (CLAddr != -1)
|
||||
{
|
||||
uintptr_t StringAddr = TAOF::ResolveRelativeAddress(CLAddr, 7, 3);
|
||||
//uintptr_t StringAddr = TAOF::ResolveRelativeAddress(CLAddr, 7, 3);
|
||||
|
||||
// TODO: we need FString Implement class to do GetEngineVersion string
|
||||
static FString(*GetEngineVersion)() = decltype(GetEngineVersion)(CLAddr);
|
||||
|
||||
if (StringAddr)
|
||||
{
|
||||
char VersionStr[64] = {};
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalDependencies>psapi.lib;dbghelp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalDependencies>psapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>$(ProjectDir)external\minhook\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
@@ -100,7 +100,7 @@
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalDependencies>psapi.lib;dbghelp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalDependencies>psapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>$(ProjectDir)external\minhook\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||
</Link>
|
||||
@@ -110,8 +110,8 @@
|
||||
<!-- Core -->
|
||||
<ClCompile Include="Core\Logging\Log.cpp" />
|
||||
<ClCompile Include="Core\Memory\Memory.cpp" />
|
||||
<ClCompile Include="Core\Memory\PatternScanner.cpp" />
|
||||
<ClCompile Include="Core\Versioning\VersionResolver.cpp" />
|
||||
<ClCompile Include="Core\Diagnostics\CrashHandler.cpp" />
|
||||
<!-- Engine -->
|
||||
<ClCompile Include="Engine\CoreTypes\ObjectArray.cpp" />
|
||||
<ClCompile Include="Engine\CoreTypes\NamePool.cpp" />
|
||||
@@ -142,7 +142,6 @@
|
||||
<ClInclude Include="Core\Versioning\VersionInfo.h" />
|
||||
<ClInclude Include="Core\Versioning\VersionResolver.h" />
|
||||
<ClInclude Include="Core\Hooks\HookTypes.h" />
|
||||
<ClInclude Include="Core\Diagnostics\CrashHandler.h" />
|
||||
<!-- Engine -->
|
||||
<ClInclude Include="Engine\CoreTypes\ObjectArray.h" />
|
||||
<ClInclude Include="Engine\CoreTypes\NamePool.h" />
|
||||
|
||||
@@ -56,9 +56,6 @@
|
||||
<Filter Include="Entry">
|
||||
<UniqueIdentifier>{I7Q6P5R4-3N2M-8Q1L-P0O9-R8Q7P6O5N4M3}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Core\Diagnostics">
|
||||
<UniqueIdentifier>{0959a4cf-e16b-41c6-8c08-dcc99defca03}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<!-- Source Files -->
|
||||
<ItemGroup>
|
||||
@@ -123,8 +120,8 @@
|
||||
<ClCompile Include="Entry\DllMain.cpp">
|
||||
<Filter>Entry</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Core\Diagnostics\CrashHandler.cpp">
|
||||
<Filter>Core\Diagnostics</Filter>
|
||||
<ClCompile Include="Core\Memory\PatternScanner.cpp">
|
||||
<Filter>Core\Memory</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<!-- Header Files -->
|
||||
@@ -207,8 +204,5 @@
|
||||
<ClInclude Include="STW\Building\BuildingTypes.h">
|
||||
<Filter>STW\Building</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Core\Diagnostics\CrashHandler.h">
|
||||
<Filter>Core\Diagnostics</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,4 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
<PropertyGroup>
|
||||
<ShowAllFiles>true</ShowAllFiles>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user