Skip to content

Commit 8b03b3f

Browse files
committed
feat: exported method to get total judgements count
1 parent e625004 commit 8b03b3f

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/dllmain/ExportedMethods.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <LR2HackBox/LR2HackBox.hpp>
2+
#include "../LR2HackBox/Features/Numbers.hpp"
3+
4+
extern "C" __declspec(dllexport) Numbers::Judgements __cdecl GetJudgements() {
5+
Numbers& numbers = *(Numbers*)LR2HackBox::Get().mNumbers.get();
6+
return numbers.GetTotalJudgements();
7+
}

src/dllmain/dllmain.vcxproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
<PrecompiledHeader>NotUsing</PrecompiledHeader>
129129
<PrecompiledHeaderFile>
130130
</PrecompiledHeaderFile>
131-
<LanguageStandard>stdcpp20</LanguageStandard>
131+
<LanguageStandard>stdcpplatest</LanguageStandard>
132132
<AdditionalIncludeDirectories>$(SolutionDir)include\;$(SolutionDir)ext\;$(ProjectDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
133133
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
134134
<LanguageStandard_C>stdc17</LanguageStandard_C>
@@ -186,6 +186,7 @@
186186
</ItemDefinitionGroup>
187187
<ItemGroup>
188188
<ClCompile Include="dllmain.cpp" />
189+
<ClCompile Include="ExportedMethods.cpp" />
189190
</ItemGroup>
190191
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
191192
<ImportGroup Label="ExtensionTargets">

src/dllmain/dllmain.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@
1818
<ClCompile Include="dllmain.cpp">
1919
<Filter>Source Files</Filter>
2020
</ClCompile>
21+
<ClCompile Include="ExportedMethods.cpp">
22+
<Filter>Source Files</Filter>
23+
</ClCompile>
2124
</ItemGroup>
2225
</Project>

0 commit comments

Comments
 (0)