mirror of
https://github.com/EricPlayZ/EGameTools.git
synced 2025-07-18 17:37:53 +08:00
switched to Clang cuz its better, fixed some broken code... idk how it even worked in the first place!!
This commit is contained in:
@ -86,13 +86,13 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<PlatformToolset>ClangCL</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<PlatformToolset>ClangCL</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
@ -186,6 +186,7 @@
|
||||
<AdditionalLibraryDirectories>source\MinHook\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>libMinHook-x64-v141-mtd.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<ImportLibrary />
|
||||
<AdditionalOptions>/NOIMPLIB %(AdditionalOptions)</AdditionalOptions>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>copy /Y "$(SolutionDir)Extra Files\Default Config\EGameTools.ini" "$(SolutionDir)$(PlatformShortName)\$(Configuration)\EGameTools.ini"</Command>
|
||||
|
@ -10,7 +10,7 @@ void ImGui::Hotkey(std::string_view label, KeyBindOption& key, float samelineOff
|
||||
ImGui::PushID(label.data());
|
||||
|
||||
if (!label.contains("##"))
|
||||
ImGui::Text(label.data());
|
||||
ImGui::Text("%s", label.data());
|
||||
ImGui::SameLine(samelineOffset);
|
||||
|
||||
if (ImGui::GetActiveID() == id) {
|
||||
|
@ -294,7 +294,7 @@ namespace GamePH {
|
||||
if (it == defaultVars.end())
|
||||
return;
|
||||
|
||||
it->second.first.emplace<T>(varValue);
|
||||
it->second.first.template emplace<T>(varValue);
|
||||
}
|
||||
static void processPlayerVar(PDWORD64*& playerVarsMem, std::pair<std::string, std::pair<LPVOID, std::string>>& var) {
|
||||
while (true) {
|
||||
@ -340,12 +340,9 @@ namespace GamePH {
|
||||
return;
|
||||
|
||||
PDWORD64* playerVarsMem = reinterpret_cast<PDWORD64*>(Get());
|
||||
bool isFloatPlayerVar = false;
|
||||
bool isBoolPlayerVar = false;
|
||||
|
||||
for (auto& var : playerVars) {
|
||||
for (auto& var : playerVars)
|
||||
processPlayerVar(playerVarsMem, var);
|
||||
}
|
||||
|
||||
gotPlayerVars = true;
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ namespace GamePH {
|
||||
return;
|
||||
|
||||
if (std::is_same<T, std::string>::value) {
|
||||
std::string valueStr = Utils::to_string(valueStr);
|
||||
std::string valueStr = Utils::to_string(value);
|
||||
if (it->second.second == "float") {
|
||||
float* const varValue = reinterpret_cast<float*>(it->second.first);
|
||||
const float actualValue = std::stof(valueStr);
|
||||
|
Reference in New Issue
Block a user