mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-24 05:00:31 -04:00
[Client] Remove credits check on Windows client
This commit is contained in:
parent
7393e3def6
commit
6e95604627
@ -214,35 +214,6 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
|
|||||||
End of tes3mp change (minor)
|
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>());
|
engine.setGrabMouse(!variables["no-grab"].as<bool>());
|
||||||
|
|
||||||
// Font encoding settings
|
// Font encoding settings
|
||||||
|
@ -7,7 +7,5 @@
|
|||||||
#define TES3MP_DEFAULT_PASSW "SuperPassword"
|
#define TES3MP_DEFAULT_PASSW "SuperPassword"
|
||||||
#define TES3MP_MASTERSERVER_PASSW "12345"
|
#define TES3MP_MASTERSERVER_PASSW "12345"
|
||||||
|
|
||||||
#define TES3MP_CREDITS_CHECKSUM "51B652F0"
|
|
||||||
|
|
||||||
|
|
||||||
#endif //OPENMW_VERSION_HPP
|
#endif //OPENMW_VERSION_HPP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user