From 646111d998828f0d2b664935aba8a4b2f9708d48 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 16 Jul 2018 01:05:56 +0300 Subject: [PATCH] [General] Use correct credits checksum and move it to Version.hpp --- apps/openmw-mp/main.cpp | 2 +- components/openmw-mp/Version.hpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/openmw-mp/main.cpp b/apps/openmw-mp/main.cpp index 12be4405f..be7ba6e16 100644 --- a/apps/openmw-mp/main.cpp +++ b/apps/openmw-mp/main.cpp @@ -208,7 +208,7 @@ int main(int argc, char *argv[]) folderPath = boost::filesystem::system_complete(boost::filesystem::path(argv[0])).remove_filename(); std::string creditsPath = folderPath.string() + "/tes3mp-credits"; - unsigned int expectedChecksumInt = Utils::hexStrToInt("E9CF9D8B"); + unsigned int expectedChecksumInt = Utils::hexStrToInt(TES3MP_CREDITS_CHECKSUM); bool hasValidCredits = Utils::doesFileHaveChecksum(creditsPath + ".md", expectedChecksumInt); if (!hasValidCredits) diff --git a/components/openmw-mp/Version.hpp b/components/openmw-mp/Version.hpp index 29766ad5f..b57d409b4 100644 --- a/components/openmw-mp/Version.hpp +++ b/components/openmw-mp/Version.hpp @@ -7,4 +7,6 @@ #define TES3MP_DEFAULT_PASSW "SuperPassword" #define TES3MP_MASTERSERVER_PASSW "12345" +#define TES3MP_CREDITS_CHECKSUM "02003664" + #endif //OPENMW_VERSION_HPP