Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
WesselKuipers committed Jul 30, 2017
2 parents 63c75c5 + 1107455 commit d9e9e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GGRev2ComboRecipeManager.Lib/ProcessMemoryManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static class ProcessMemoryManager

public static byte[] ReadProcessMemory(string processName, int dataOffset, int length, bool offsetIsPointer, int additionalOffset = 0)
{
var processes = Process.GetProcessesByName("GuiltyGearXrd");
var processes = Process.GetProcessesByName(processName);
if (processes.Length < 1)
{
return null;
Expand All @@ -43,7 +43,7 @@ public static byte[] ReadProcessMemory(string processName, int dataOffset, int l

public static void WriteProcessMemory(string processName, int dataOffset, byte[] data, bool offsetIsPointer, int additionalOffset = 0)
{
var process = Process.GetProcessesByName("GuiltyGearXrd")?[0];
var process = Process.GetProcessesByName(processName)?[0];
if (process == null)
{
return;
Expand Down

0 comments on commit d9e9e83

Please sign in to comment.