Fixed issues hopefully

This commit is contained in:
AlexandreRouma
2022-02-24 21:01:51 +01:00
parent 2779516378
commit 9bbc50ff3c
8 changed files with 11 additions and 11 deletions

View File

@@ -74,14 +74,14 @@ int sdrpp_main(int argc, char* argv[]) {
return 0;
}
bool serverMode = core::args["server"];
bool serverMode = (bool)core::args["server"];
#ifdef _WIN32
if (!core::args["con"].b() && !serverMode) { FreeConsole(); }
#endif
// Check root directory
std::string root = core::args["root"];
std::string root = (std::string)core::args["root"];
if (!std::filesystem::exists(root)) {
spdlog::warn("Root directory {0} does not exist, creating it", root);
if (!std::filesystem::create_directories(root)) {