Fix SDK Compile Error

fixed mismatch platform toolset (v142 & v143 )
remove static library from repositry

fix debug esp

GetAllActorsofType was exiting early do to branch statement
This commit is contained in:
NightFyre 2024-01-29 07:05:49 -05:00
parent 1e869553ee
commit ff926352a5
8 changed files with 13 additions and 6 deletions

1
.gitignore vendored
View File

@ -32,6 +32,7 @@ bld/
[Oo]ut/
[Ll]og/
[Ll]ogs/
lib/
# Visual Studio 2015/2017 cache/options directory
.vs/

View File

@ -183,6 +183,12 @@ bool config::GetAllActorsofType(SDK::UClass* mType, std::vector<SDK::AActor*>* o
if (!pLevelsArray.IsValidIndex(i))
continue;
SDK::ULevel* pLevel = pLevelsArray[i];
if (!pLevel && bLoopAllLevels)
continue;
else if (!pLevel && !bLoopAllLevels)
break;
SDK::TArray<SDK::AActor*> pActorsArray = pLevelsArray[i]->Actors;
__int32 actorsCount = pActorsArray.Count();

View File

@ -5,7 +5,7 @@
void ESP();
void ESP_DEBUG(float mDist, ImVec4 color = { 1.0f, 0.0f, 0.0f, 01.0f }, SDK::UClass* mEntType = SDK::AActor::StaticClass());
void ESP_DEBUG(float mDist, ImVec4 color = { 1.0f, 1.0f, 1.0f, 01.0f }, SDK::UClass* mEntType = SDK::AActor::StaticClass());
void DrawUActorComponent(SDK::TArray<SDK::UActorComponent*> Comps, ImColor color);

View File

@ -29,26 +29,26 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -660,7 +660,7 @@ namespace DX11_Base
ESP();
if (Config.isDebugESP)
ESP_DEBUG(Config.mDebugESPDistance, ImVec4(0, 1, 0, 1));
ESP_DEBUG(Config.mDebugESPDistance);
ImGui::End();
}