Skip to content
This repository was archived by the owner on Jun 6, 2022. It is now read-only.

Commit 2448bee

Browse files
author
sprogcoder
committed
updated variable name
1 parent 97c55c3 commit 2448bee

File tree

1 file changed

+5
-5
lines changed
  • java-win-memory-trainer/src/main/java/example

1 file changed

+5
-5
lines changed

java-win-memory-trainer/src/main/java/example/Main.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ public class Main
1414

1515
public static void main(String[] args) throws WindowNotFoundException, MemoryException
1616
{
17-
JTrainer jtrainer = new JTrainer(null, "Minesweeper");
17+
JTrainer jTrainer = new JTrainer(null, "Minesweeper");
1818

1919
// Old Bytes
20-
jtrainer.writeProcessMemory(MEMORY_ADDRESS, new int[] { 0x22, 0x22, 0x22, 0x22 });
21-
byte[] oldBytes = jtrainer.readProcessMemory(MEMORY_ADDRESS, 4);
20+
jTrainer.writeProcessMemory(MEMORY_ADDRESS, new int[] { 0x22, 0x22, 0x22, 0x22 });
21+
byte[] oldBytes = jTrainer.readProcessMemory(MEMORY_ADDRESS, 4);
2222
System.out.println(Arrays.toString(MemoryUtils.convertByteArrayToHex(oldBytes)));
2323

2424
// New Bytes
25-
jtrainer.writeProcessMemory(MEMORY_ADDRESS, new int[] { 0x90, 0x90, 0x90, 0x90 }); // nop, nop, nop, nop
26-
byte[] newBytes = jtrainer.readProcessMemory(MEMORY_ADDRESS, 4);
25+
jTrainer.writeProcessMemory(MEMORY_ADDRESS, new int[] { 0x90, 0x90, 0x90, 0x90 }); // nop, nop, nop, nop
26+
byte[] newBytes = jTrainer.readProcessMemory(MEMORY_ADDRESS, 4);
2727
System.out.println(Arrays.toString(MemoryUtils.convertByteArrayToHex(newBytes)));
2828
}
2929
}

0 commit comments

Comments
 (0)