From 0de847bb4832c201233c87fa37867b9d89f0e8c8 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Fri, 27 May 2022 01:13:14 +0100 Subject: rename project folder (:tf: commit log) --- NorthstarDedicatedTest/configurables.cpp | 38 -------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 NorthstarDedicatedTest/configurables.cpp (limited to 'NorthstarDedicatedTest/configurables.cpp') diff --git a/NorthstarDedicatedTest/configurables.cpp b/NorthstarDedicatedTest/configurables.cpp deleted file mode 100644 index 389e6e0b..00000000 --- a/NorthstarDedicatedTest/configurables.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include -#include "pch.h" -#include "configurables.h" - -std::string GetNorthstarPrefix() -{ - return NORTHSTAR_FOLDER_PREFIX; -} - -void parseConfigurables() -{ - char* clachar = strstr(GetCommandLineA(), "-profile="); - if (clachar) - { - std::string cla = std::string(clachar); - if (strncmp(cla.substr(9, 1).c_str(), "\"", 1)) - { - int space = cla.find(" "); - std::string dirname = cla.substr(9, space - 9); - spdlog::info("Found profile in command line arguments: " + dirname); - NORTHSTAR_FOLDER_PREFIX = dirname; - } - else - { - std::string quote = "\""; - int quote1 = cla.find(quote); - int quote2 = (cla.substr(quote1 + 1)).find(quote); - std::string dirname = cla.substr(quote1 + 1, quote2); - spdlog::info("Found profile in command line arguments: " + dirname); - NORTHSTAR_FOLDER_PREFIX = dirname; - } - } - else - { - spdlog::info("Profile was not found in command line arguments. Using default: R2Northstar"); - NORTHSTAR_FOLDER_PREFIX = "R2Northstar"; - } -} -- cgit v1.2.3