Skip to content

Commit

Permalink
Fixed the total emblem and extra emblem reading mismatch
Browse files Browse the repository at this point in the history
bruh
  • Loading branch information
Refragg authored Jun 3, 2021
1 parent 1a1aec6 commit f6b70f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SRB2-Emblem-Displayer/Project1/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ static void Analyze_file(string fileName, string outputName)
byte[] maxEmblemsBuffer = new byte[4];
byte[] maxExtraBuffer = new byte[4];

ReadProcessMemory(gameProc.Handle, totalExtraEmblemsAddress, maxEmblemsBuffer, 1, IntPtr.Zero);
ReadProcessMemory(gameProc.Handle, totalEmblemsAddress, maxExtraBuffer, 1, IntPtr.Zero);
ReadProcessMemory(gameProc.Handle, totalEmblemsAddress, maxEmblemsBuffer, 1, IntPtr.Zero);
ReadProcessMemory(gameProc.Handle, totalExtraEmblemsAddress, maxExtraBuffer, 1, IntPtr.Zero);

int maxEmblems = BitConverter.ToInt32(maxEmblemsBuffer, 0);
int maxExtra = BitConverter.ToInt32(maxExtraBuffer, 0);
Expand Down

0 comments on commit f6b70f7

Please sign in to comment.