From 02e646e838b7a36680dcfb86753950c55e6a01a4 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 25 Apr 2019 04:39:25 +0300 Subject: [PATCH] [Client] Use check for credits file that makes more sense --- apps/openmw/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/openmw/main.cpp b/apps/openmw/main.cpp index 1397b33bb..d8af96bc2 100644 --- a/apps/openmw/main.cpp +++ b/apps/openmw/main.cpp @@ -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()); - 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);