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

Commit

Permalink
Added checksum hash reported by T710MA on Speedrun.com forums.
Browse files Browse the repository at this point in the history
  • Loading branch information
Squirrelies committed Feb 15, 2019
1 parent 52b8dbd commit 9e400dd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions RE2REmakeSRT/GameHashes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@
{
public static class GameHashes
{
// Personally observed upon release.
public static readonly byte[] Stock_1ShotDemo = new byte[32] { 0x48, 0xB8, 0x8E, 0xCB, 0xE3, 0xA7, 0x2F, 0xD5, 0x43, 0x31, 0x27, 0x0A, 0x57, 0xC2, 0x6B, 0x72, 0x65, 0x31, 0x1C, 0x32, 0xFD, 0x41, 0x64, 0x38, 0xBE, 0x5A, 0xB0, 0x7D, 0x08, 0xD1, 0x3D, 0xE2 };

// Assumed to exist since PS4 release version was already 1.01 so I assume PC version is the same which means a 1.00 exists somewhere.
public static readonly byte[] Stock_1p00 = new byte[32]; // Undefined, we don't know the hashes yet!

// Personally observed upon release.
public static readonly byte[] Stock_1p01 = new byte[32] { 0xFE, 0x7B, 0xC9, 0x1D, 0x03, 0x2F, 0x9B, 0xD9, 0x82, 0x83, 0xBE, 0x56, 0x1E, 0xA1, 0x51, 0x55, 0x8F, 0xBC, 0x18, 0xC2, 0x6D, 0x7D, 0xEB, 0x54, 0xFE, 0x81, 0xB1, 0x89, 0x5C, 0x80, 0xAC, 0x30 };

// Reported by T710MA on Speedrun.com (https://pbs.twimg.com/media/DzHTNaQUYAEsFFI.jpg:large). Unsure if region modified by Capcom or user-modified.
public static readonly byte[] Unknown_1 = new byte[32] { 0xD0, 0xA2, 0xB8, 0x74, 0xA1, 0x47, 0x41, 0x08, 0xE7, 0x21, 0x25, 0x58, 0x9F, 0x79, 0xA5, 0x1A, 0x66, 0xC8, 0xCB, 0x05, 0x6B, 0xA3, 0xD5, 0x46, 0x28, 0xDA, 0xED, 0xAE, 0x1D, 0x7E, 0xA5, 0xEB };
}
}
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.1.8.4")]
[assembly: AssemblyFileVersion("1.1.8.4")]
[assembly: AssemblyVersion("1.1.8.5")]
[assembly: AssemblyFileVersion("1.1.8.5")]
6 changes: 3 additions & 3 deletions RE2REmakeSRT/REmake2VersionDetector.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using ProcessMemory;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Windows.Forms;

namespace RE2REmakeSRT
{
Expand Down Expand Up @@ -34,7 +34,7 @@ public static REmake2VersionEnumeration GetVersion(int pid)
{
return REmake2VersionEnumeration.Stock_1p00;
}
else if (processHash.SequenceEqual(GameHashes.Stock_1p01))
else if (processHash.SequenceEqual(GameHashes.Stock_1p01) || processHash.SequenceEqual(GameHashes.Unknown_1))
{
return REmake2VersionEnumeration.Stock_1p01;
}
Expand All @@ -48,7 +48,7 @@ public static REmake2VersionEnumeration GetVersion(int pid)
}
sb.Length -= 2;

System.Windows.Forms.MessageBox.Show(null, string.Format("Unknown version of Resident Evil 2 (2019). You may encounter issues.\r\nHash: {0}", sb.ToString()), string.Empty, System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
MessageBox.Show(null, string.Format("Unknown version of Resident Evil 2 (2019). You may encounter issues.\r\nHash: {0}", sb.ToString()), string.Empty, MessageBoxButtons.OK, MessageBoxIcon.Warning);
return REmake2VersionEnumeration.Stock_1p01;
}
}
Expand Down

0 comments on commit 9e400dd

Please sign in to comment.