mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-28 03:09:40 +00:00
[Client] Use check for credits file that makes more sense
This commit is contained in:
parent
437854180c
commit
02e646e838
1 changed files with 2 additions and 3 deletions
|
@ -226,9 +226,8 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
|
|||
change the checksum below
|
||||
*/
|
||||
#ifdef _WIN32
|
||||
boost::filesystem::path folderPath(boost::filesystem::initial_path<boost::filesystem::path>());
|
||||
folderPath = boost::filesystem::system_complete(boost::filesystem::path(argv[0])).remove_filename();
|
||||
std::string creditsPath = folderPath.string() + "/tes3mp-credits";
|
||||
|
||||
std::string creditsPath = (cfgMgr.getLocalPath() / "tes3mp-credits").string();
|
||||
|
||||
unsigned int expectedChecksumInt = Utils::hexStrToInt(TES3MP_CREDITS_CHECKSUM);
|
||||
bool hasValidCredits = Utils::doesFileHaveChecksum(creditsPath + ".md", expectedChecksumInt);
|
||||
|
|
Loading…
Reference in a new issue