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

Commit

Permalink
Updated offsets.
Browse files Browse the repository at this point in the history
  • Loading branch information
Squirrelies committed Apr 26, 2019
1 parent 89e500b commit d8412e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 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 + 0x070B0910, 0x2E0, 0x218, 0x610, 0x710, 0x60);
PointerRank = new MultilevelPointer(memoryAccess, BaseAddress + 0x0708A9D8);
PointerPlayerHP = new MultilevelPointer(memoryAccess, BaseAddress + 0x070B0840, 0x50, 0x20);
PointerPlayerPoison = new MultilevelPointer(memoryAccess, BaseAddress + 0x070B0840, 0x50, 0x20, 0xF8);
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);

PointerEnemyEntries = new MultilevelPointer[32];
for (int i = 0; i < PointerEnemyEntries.Length; ++i)
PointerEnemyEntries[i] = new MultilevelPointer(memoryAccess, BaseAddress + 0x070838A8, 0x80 + (i * 0x08), 0x88, 0x18, 0x1A0);
PointerEnemyEntries[i] = new MultilevelPointer(memoryAccess, BaseAddress + 0x070A35B8, 0x80 + (i * 0x08), 0x88, 0x18, 0x1A0);

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 + 0x070B0840, 0x50, 0x98, 0x10, 0x20 + (i * 0x08), 0x18);
PointerInventoryEntries[i] = new MultilevelPointer(memoryAccess, BaseAddress + 0x0709A630, 0x50, 0x98, 0x10, 0x20 + (i * 0x08), 0x18);
}

// 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.2.0")]
[assembly: AssemblyFileVersion("1.3.2.0")]
[assembly: AssemblyVersion("1.3.3.0")]
[assembly: AssemblyFileVersion("1.3.3.0")]

0 comments on commit d8412e2

Please sign in to comment.