Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
changed to c++17 on all configurations
Browse files Browse the repository at this point in the history
* my version of VS doesn't recognize stdcpp20 and falls back to default c++14, which results in failed compilation because std::optional was introduced in c++17
  • Loading branch information
kotae4 committed Nov 20, 2021
1 parent db280a4 commit 3ebb015
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions AmongUsMenu.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@
<PrecompiledHeaderFile>pch-il2cpp.h</PrecompiledHeaderFile>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<AdditionalIncludeDirectories>$(ProjectDir)appdata;$(ProjectDir)events;$(ProjectDir)framework;$(ProjectDir)gui;$(ProjectDir)hooks;$(ProjectDir)includes;$(ProjectDir)resources;$(ProjectDir)rpc;$(ProjectDir)user</AdditionalIncludeDirectories>
<LanguageStandard>stdcpp20</LanguageStandard>
<LanguageStandard>stdcpp17</LanguageStandard>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<WholeProgramOptimization>false</WholeProgramOptimization>
Expand Down Expand Up @@ -592,7 +592,7 @@ git rev-parse --abbrev-ref HEAD &gt;&gt; user/gitparams.h</Command>
<PrecompiledHeaderFile>pch-il2cpp.h</PrecompiledHeaderFile>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<AdditionalIncludeDirectories>$(ProjectDir)appdata;$(ProjectDir)events;$(ProjectDir)framework;$(ProjectDir)gui;$(ProjectDir)hooks;$(ProjectDir)includes;$(ProjectDir)resources;$(ProjectDir)rpc;$(ProjectDir)user</AdditionalIncludeDirectories>
<LanguageStandard>stdcpp20</LanguageStandard>
<LanguageStandard>stdcpp17</LanguageStandard>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<DebugInformationFormat>None</DebugInformationFormat>
<WholeProgramOptimization>true</WholeProgramOptimization>
Expand Down
1 change: 1 addition & 0 deletions hooks/PlayerControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "esp.hpp"
#include "_rpc.h"
#include <iostream>
#include <optional>

void dPlayerControl_CompleteTask(PlayerControl* __this, uint32_t idx, MethodInfo* method) {
std::optional<TaskTypes__Enum> taskType = std::nullopt;
Expand Down
4 changes: 2 additions & 2 deletions user/gitparams.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#define GIT_CUR_COMMIT 89cf161f9068845716b3dce3ce95acc23a265f20
#define GIT_BRANCH 2021.1.9s
#define GIT_CUR_COMMIT db280a4b512421a09c5b751e8f9a746605308e42
#define GIT_BRANCH RoleColors

0 comments on commit 3ebb015

Please sign in to comment.