aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/hooks.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-25 18:06:57 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-25 18:06:57 +0000
commitfc10ac473811f2497ef3f4c9c0b885f8efb3025f (patch)
treec4af81b026e6d72b79d1b11e939e04183ece4b84 /NorthstarDedicatedTest/hooks.cpp
parent32277386b62877999c2017146750a2449d52d447 (diff)
parenta23232aad6bccc3dc0e5ecd38365303863222a73 (diff)
downloadNorthstarLauncher-fc10ac473811f2497ef3f4c9c0b885f8efb3025f.tar.gz
NorthstarLauncher-fc10ac473811f2497ef3f4c9c0b885f8efb3025f.zip
Merge branch 'main' of https://github.com/R2Northstar/NorthstarLauncher
Diffstat (limited to 'NorthstarDedicatedTest/hooks.cpp')
-rw-r--r--NorthstarDedicatedTest/hooks.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/hooks.cpp b/NorthstarDedicatedTest/hooks.cpp
index ce4d75ad..cdb5fef9 100644
--- a/NorthstarDedicatedTest/hooks.cpp
+++ b/NorthstarDedicatedTest/hooks.cpp
@@ -73,6 +73,10 @@ LPSTR GetCommandLineAHook()
argBuffer << cmdlineArgFile.rdbuf();
cmdlineArgFile.close();
+ // if some other command line option includes "-northstar" in the future then you have to refactor this check to check with both either space after or ending with
+ if (!isDedi && argBuffer.str().find("-northstar") != std::string::npos)
+ MessageBoxA(NULL, "The \"-northstar\" command line option is NOT supposed to go into ns_startup_args.txt file!\n\nThis option is supposed to go into Origin/Steam game launch options, and then you are supposed to launch the original Titanfall2.exe rather than NorthstarLauncher.exe to make use of it.", "Northstar Warning", MB_ICONWARNING);
+
args.append(argBuffer.str());
}