From 25d1af748de2b9138a16cf1ad66c6bf9c20d3cdb Mon Sep 17 00:00:00 2001 From: Andrei Abrudan Date: Wed, 13 Jul 2022 09:26:52 +0100 Subject: [PATCH] Fixed compilation issues with C++20 --- cheat-library/cheat-library.vcxproj | 2 +- cheat-library/src/user/cheat/misc/Debug.cpp | 6 ++++-- injector/injector.vcxproj | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cheat-library/cheat-library.vcxproj b/cheat-library/cheat-library.vcxproj index efbd795..1776f5f 100644 --- a/cheat-library/cheat-library.vcxproj +++ b/cheat-library/cheat-library.vcxproj @@ -895,7 +895,7 @@ true Use pch-il2cpp.h - stdcpp17 + stdcpp20 $(ProjectDir)src/appdata;$(ProjectDir)src/framework;$(ProjectDir)res/;$(ProjectDir)vendor/protobuf/src/;$(ProjectDir)src/user;$(SolutionDir)cheat-base/src/;$(SolutionDir)cheat-base/vendor/imgui/;$(SolutionDir)cheat-base/vendor/json/single_include/;$(SolutionDir)cheat-base/vendor/magic_enum/include/;$(SolutionDir)cheat-base/vendor/fmt/include/;$(SolutionDir)cheat-base/vendor/imgui-notify-v2/;$(SolutionDir)cheat-base/vendor/simpleIni/;$(SolutionDir)cheat-base/vendor/imgui-notify-v2/;$(SolutionDir)cheat-base/vendor/detours/ MaxSpeed true diff --git a/cheat-library/src/user/cheat/misc/Debug.cpp b/cheat-library/src/user/cheat/misc/Debug.cpp index 0699dc3..e30396c 100644 --- a/cheat-library/src/user/cheat/misc/Debug.cpp +++ b/cheat-library/src/user/cheat/misc/Debug.cpp @@ -203,7 +203,8 @@ namespace cheat::feature for (auto entity : entities) { auto entityPos = entity->absolutePosition(); std::string baseString = csvFriendly ? "{},{},{},{},{},{}" : "{} {} {} x={} y={} z={}"; - auto entityDetails = fmt::format(baseString, + auto entityDetails = fmt::format( + fmt::runtime(baseString), fmt::ptr(entity), entity->runtimeID(), entity->name().c_str(), @@ -222,7 +223,8 @@ namespace cheat::feature std::string baseString = csvFriendly ? "{},{},{},{},{},{}" : "{} {} {} x={} y={} z={}"; if (csvFriendly && includeHeaders) baseString = headerString.append(baseString); - auto entityDetails = fmt::format(baseString, + auto entityDetails = fmt::format( + fmt::runtime(baseString), fmt::ptr(entity), entity->runtimeID(), entity->name().c_str(), diff --git a/injector/injector.vcxproj b/injector/injector.vcxproj index 836096f..7bf85d8 100644 --- a/injector/injector.vcxproj +++ b/injector/injector.vcxproj @@ -127,7 +127,7 @@ true NDEBUG;_CONSOLE;%(PreprocessorDefinitions) true - stdcpp17 + stdcpp20 $(ProjectDir)include/;$(SolutionDir)cheat-base/src;$(SolutionDir)cheat-base/vendor/simpleIni/ stdc17