Skip to content

Commit

Permalink
Update pattern to be compatible with 1.30.4
Browse files Browse the repository at this point in the history
  • Loading branch information
steeno committed Nov 14, 2020
1 parent 15637ea commit bb7f7c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EU4ConsolePatcher/defines.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once
#define OPCODE_JMP 0xEB

#define MEMORY_PATTERN_A L"\x74\x00\xC6\x44\x24\x28\x00\x00\x00\x00\x00\x00\x00\x48"
#define MEMORY_SIGNATURE_A L"x?xxxxx??????x"
#define MEMORY_PATTERN_B L"\x74\x00\xC7\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0F"
#define MEMORY_SIGNATURE_B L"x?xx?????????x"
#define MEMORY_PATTERN_A L"\x74\x5F\xC6\x44\x24\x28\x00\x41\xB8\x35\x00\x00\x00\x48\x8D\x00\x00\x00\x00\x00\x48\x8D\x4C\x24\x30\xE8\x00\x00\x00\x00\x0F\xB6\x44\x24\x28\x88\x06\x48\x8D\x4E\x08\x48\xC7\x41\x18\x0F\x00\x00\x00\x4C\x89\x61\x10"
#define MEMORY_SIGNATURE_A L"xxxxxxxxxxxxxxx?????xxxxxx????xxxxxxxxxxxxxxxxxxxxxxx"
#define MEMORY_PATTERN_B L"\x74\x0B\xC7\x04\x25\x00\x00\x00\x00\x39\x05\x00\x00\x0F\xB6\x45\xE0\x88\x06\x48\x8D\x4E\x08\x48\x8D\x55\xE8\xE8\x00\x00\x00\x00\x90\x48\x8D\x4D\xE8\xE8"
#define MEMORY_SIGNATURE_B L"xxxxxxxxxxxxxxxxxxxxxxxxxxxx????xxxxxx"

#define TARGET_PROCESS_NAME L"eu4.exe"
#define TARGET_MODULE_NAME L"eu4.exe"
3 changes: 3 additions & 0 deletions eu4-1.30.4.1337
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
>eu4.exe
00000000013930E7:74->EB
00000000013932D7:74->EB

0 comments on commit bb7f7c0

Please sign in to comment.