aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/configurables.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-08-25 00:27:26 +0100
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-14 12:53:25 +0200
commitf4eaf0c4559379c936ab2911e0edb5d69f6d2522 (patch)
tree47169415c186b9b4e33ca985663e1dc47b8f3b84 /NorthstarDLL/configurables.cpp
parent36088a380e345fd60d2b6f66f62521fd3f98141a (diff)
downloadNorthstarLauncher-f4eaf0c4559379c936ab2911e0edb5d69f6d2522.tar.gz
NorthstarLauncher-f4eaf0c4559379c936ab2911e0edb5d69f6d2522.zip
Rename `configurables.cpp` to `nsprefix.cpp` (#253)
Diffstat (limited to 'NorthstarDLL/configurables.cpp')
-rw-r--r--NorthstarDLL/configurables.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/NorthstarDLL/configurables.cpp b/NorthstarDLL/configurables.cpp
deleted file mode 100644
index 389e6e0b..00000000
--- a/NorthstarDLL/configurables.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-#include <string>
-#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";
- }
-}