[General] Use correct credits checksum and move it to Version.hpp

fix/skillcap
David Cernat 7 years ago
parent 0f36c3ea24
commit 646111d998

@ -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)

@ -7,4 +7,6 @@
#define TES3MP_DEFAULT_PASSW "SuperPassword"
#define TES3MP_MASTERSERVER_PASSW "12345"
#define TES3MP_CREDITS_CHECKSUM "02003664"
#endif //OPENMW_VERSION_HPP

Loading…
Cancel
Save