Skip to content
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.

Commit

Permalink
Updated for new pointers in RE2 update
Browse files Browse the repository at this point in the history
  • Loading branch information
Squirrelies committed Dec 18, 2019
1 parent 8add414 commit aea42dd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions RE2REmakeSRT/GameMemory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions RE2REmakeSRT/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

0 comments on commit aea42dd

Please sign in to comment.