[Client] Remove credits check on Windows client

This commit is contained in:
David Cernat 2021-09-20 05:55:51 +02:00
parent 7393e3def6
commit 6e95604627
2 changed files with 0 additions and 31 deletions

View File

@ -214,35 +214,6 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
End of tes3mp change (minor)
*/
/*
Start of tes3mp addition
Check for unmodified tes3mp-credits file on Windows; this makes it so people can't repackage official
releases with their own made-up credits, though it obviously has no bearing on unofficial releases that
change the checksum below
*/
#ifdef _WIN32
std::string creditsPath = (cfgMgr.getLocalPath() / "tes3mp-credits").string();
unsigned int expectedChecksumInt = Utils::hexStrToInt(TES3MP_CREDITS_CHECKSUM);
bool hasValidCredits = Utils::doesFileHaveChecksum(creditsPath + ".md", expectedChecksumInt);
if (!hasValidCredits)
hasValidCredits = Utils::doesFileHaveChecksum(creditsPath + ".txt", expectedChecksumInt);
if (!hasValidCredits)
{
LOG_MESSAGE_SIMPLE(TimedLog::LOG_FATAL, "The client is shutting down");
LOG_APPEND(TimedLog::LOG_FATAL, "- %s", TES3MP_CREDITS_ERROR);
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "tes3mp", TES3MP_CREDITS_ERROR, 0);
return false;
}
#endif
/*
End of tes3mp addition
*/
engine.setGrabMouse(!variables["no-grab"].as<bool>());
// Font encoding settings

View File

@ -7,7 +7,5 @@
#define TES3MP_DEFAULT_PASSW "SuperPassword"
#define TES3MP_MASTERSERVER_PASSW "12345"
#define TES3MP_CREDITS_CHECKSUM "51B652F0"
#endif //OPENMW_VERSION_HPP