Skip to content

Commit

Permalink
Update 3/31
Browse files Browse the repository at this point in the history
  • Loading branch information
TKazer committed Mar 31, 2023
1 parent dbf55b9 commit 07cf616
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions Malody-Reader/Malody-Reader.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="demo.cpp" />
<ClCompile Include="Malody_Algorithm.cpp" />
<ClCompile Include="Malody_Algorithm.hpp" />
</ItemGroup>
<ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions Malody-Reader/Malody-Reader.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
<ClCompile Include="Malody_Algorithm.hpp">
<Filter>MalodyReader</Filter>
</ClCompile>
<ClCompile Include="Malody_Algorithm.cpp">
<Filter>MalodyReader</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="Process.hpp">
Expand Down
4 changes: 1 addition & 3 deletions Malody-Reader/Read_DataInResult.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,15 @@ namespace Malody
DWORD MaxComboAddress = Process.TraceAddress(BaseAddress, { 0x228,0x250,0x70 });

Malody::ResultData _t_Data;
double _t_Score = 0;

if (!Process.ReadMemory<double>(ScoreAddress, _t_Score))
if (!Process.ReadMemory<int>(ScoreAddress, _t_Data.Score))
return false;
if (!Process.ReadMemory<int>(MaxComboAddress, _t_Data.MaxCombo))
return false;
if (!Process.ReadMemory<Malody::ResultData::_hitdata>(HitAddress, _t_Data.Hit))
return false;

_t_Data.Accuracy = Malody::Algorithm::CalcAccuracy(_t_Data.Hit);
_t_Data.Score = static_cast<int>(_t_Score);
Data = _t_Data;

return true;
Expand Down

0 comments on commit 07cf616

Please sign in to comment.