Skip to content

Commit

Permalink
Merge pull request #106 from ThielHater/patch-1
Browse files Browse the repository at this point in the history
Added CHECKSUM_G1_1_08k_4GB to version check
  • Loading branch information
kirides authored Sep 15, 2022
2 parents 0fbea11 + 1aa7ac6 commit 462d2fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion D3D11Engine/VersionCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace VersionCheck {
static const int CHECKSUM_G2_2_6_FIX = 0x008a3e89;
static const int CHECKSUM_G2_2_6_FIX_4GB = 0x008a3ea9;
static const int CHECKSUM_G1_1_08k = 0x0000eb3d;
static const int CHECKSUM_G1_1_08k_4GB = 0x08608228;
static const int CHECKSUM_G1_1_12f = 0x00862362;

/** Returns whether the given file exists */
Expand Down Expand Up @@ -77,7 +78,7 @@ namespace VersionCheck {
"\nYour checksum was: " << headersum;
}
#else
if ( headersum != CHECKSUM_G1_1_08k ) {
if ( headersum != CHECKSUM_G1_1_08k && headersum != CHECKSUM_G1_1_08k_4GB ) {
LogWarnBox() << "Your Gothic-Executable does not match the checksum for this version of GD3D11!\n"
"This DLL only works for Gothic 1 - Version 1.08k_mod or the System-Pack.\n\n"
"You can continue and try anyways but the game will most likely crash.\n"
Expand Down

0 comments on commit 462d2fd

Please sign in to comment.