diff --git a/src/Network/Resources.cpp b/src/Network/Resources.cpp index d1849a8..872dd66 100644 --- a/src/Network/Resources.cpp +++ b/src/Network/Resources.cpp @@ -37,7 +37,13 @@ namespace fs = std::filesystem; void CheckForDir() { if (!fs::exists(CachingDirectory)) { - fs::create_directory(CachingDirectory); + try { + fs::create_directories(CachingDirectory); + } catch (const std::exception& e) { + error(std::string("Failed to create caching directory: ") + e.what() + ". This is a fatal error. Please make sure to configure a directory which you have permission to create, read and write from/to."); + std::this_thread::sleep_for(std::chrono::seconds(3)); + std::exit(1); + } } } void WaitForConfirm() { diff --git a/src/Startup.cpp b/src/Startup.cpp index c7442e7..a902fb4 100644 --- a/src/Startup.cpp +++ b/src/Startup.cpp @@ -81,10 +81,10 @@ std::string GetEN() { } std::string GetVer() { - return "2.0"; + return "2.1"; } std::string GetPatch() { - return ".99"; + return ".0"; } std::string GetEP(char* P) {