From aea42dd0f873c1c710686a2e696a32113a97e67c Mon Sep 17 00:00:00 2001 From: "Travis J. Gutjahr" <33809229+Squirrelies@users.noreply.github.com> Date: Wed, 18 Dec 2019 01:33:50 -0600 Subject: [PATCH] Updated for new pointers in RE2 update --- RE2REmakeSRT/GameMemory.cs | 16 ++++++++-------- RE2REmakeSRT/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/RE2REmakeSRT/GameMemory.cs b/RE2REmakeSRT/GameMemory.cs index db7d2d9..63c93bb 100644 --- a/RE2REmakeSRT/GameMemory.cs +++ b/RE2REmakeSRT/GameMemory.cs @@ -66,20 +66,20 @@ public GameMemory(int pid) BaseAddress = NativeWrappers.GetProcessBaseAddress(pid, ProcessMemory.PInvoke.ListModules.LIST_MODULES_64BIT).ToInt64(); // Bypass .NET's managed solution for getting this and attempt to get this info ourselves via PInvoke since some users are getting 299 PARTIAL COPY when they seemingly shouldn't. This is built as x64 only and RE2 is x64 only to my knowledge. // Setup the pointers. - PointerIGT = new MultilevelPointer(memoryAccess, BaseAddress + 0x070936F0, 0x2E0, 0x218, 0x610, 0x710, 0x60); - PointerRank = new MultilevelPointer(memoryAccess, BaseAddress + 0x070A3770); - PointerPlayerHP = new MultilevelPointer(memoryAccess, BaseAddress + 0x0709A630, 0x50, 0x20); - PointerPlayerPoison = new MultilevelPointer(memoryAccess, BaseAddress + 0x0709A630, 0x50, 0x20, 0xF8); + PointerIGT = new MultilevelPointer(memoryAccess, BaseAddress + 0x07097EF8, 0x2E0L, 0x218L, 0x610L, 0x710L, 0x60L); // * + PointerRank = new MultilevelPointer(memoryAccess, BaseAddress + 0x070A7C88); // * + PointerPlayerHP = new MultilevelPointer(memoryAccess, BaseAddress + 0x070A17E0, 0x50L, 0x20L); // * + PointerPlayerPoison = new MultilevelPointer(memoryAccess, BaseAddress + 0x070A17E0, 0x50L, 0x20L, 0xF8L); // * PointerEnemyEntries = new MultilevelPointer[32]; - for (int i = 0; i < PointerEnemyEntries.Length; ++i) - PointerEnemyEntries[i] = new MultilevelPointer(memoryAccess, BaseAddress + 0x070A35B8, 0x80 + (i * 0x08), 0x88, 0x18, 0x1A0); + for (long i = 0; i < PointerEnemyEntries.Length; ++i) + PointerEnemyEntries[i] = new MultilevelPointer(memoryAccess, BaseAddress + 0x070960E0, 0x80L + (i * 0x08L), 0x88L, 0x18L, 0x1A0L); // * if (!Program.programSpecialOptions.Flags.HasFlag(ProgramFlags.NoInventory)) { PointerInventoryEntries = new MultilevelPointer[20]; - for (int i = 0; i < PointerInventoryEntries.Length; ++i) - PointerInventoryEntries[i] = new MultilevelPointer(memoryAccess, BaseAddress + 0x0709A630, 0x50, 0x98, 0x10, 0x20 + (i * 0x08), 0x18); + for (long i = 0; i < PointerInventoryEntries.Length; ++i) + PointerInventoryEntries[i] = new MultilevelPointer(memoryAccess, BaseAddress + 0x070A17E0, 0x50L, 0x98L, 0x10L, 0x20L + (i * 0x08L), 0x18L); // * } // Initialize variables to default values. diff --git a/RE2REmakeSRT/Properties/AssemblyInfo.cs b/RE2REmakeSRT/Properties/AssemblyInfo.cs index 122f2d7..3f8373e 100644 --- a/RE2REmakeSRT/Properties/AssemblyInfo.cs +++ b/RE2REmakeSRT/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.3.3.0")] -[assembly: AssemblyFileVersion("1.3.3.0")] +[assembly: AssemblyVersion("1.3.4.0")] +[assembly: AssemblyFileVersion("1.3.4.0")]