[Client] Use check for credits file that makes more sense

pull/526/head
David Cernat 6 years ago
parent 437854180c
commit 02e646e838

@ -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…
Cancel
Save