diff options
author | p0358 <p0358@users.noreply.github.com> | 2022-01-24 22:17:52 +0100 |
---|---|---|
committer | p0358 <p0358@users.noreply.github.com> | 2022-01-24 22:17:52 +0100 |
commit | b85b357a496ab633bb42f46735c42ef0abade392 (patch) | |
tree | 4e503b36a4e8c20747c820a7bd039016e7de54bf /NorthstarDedicatedTest | |
parent | 75d99e1a81bfbd0dbbaf0b1ace144a8156a47148 (diff) | |
download | NorthstarLauncher-b85b357a496ab633bb42f46735c42ef0abade392.tar.gz NorthstarLauncher-b85b357a496ab633bb42f46735c42ef0abade392.zip |
check for -northstar in wrong place
Diffstat (limited to 'NorthstarDedicatedTest')
-rw-r--r-- | NorthstarDedicatedTest/hooks.cpp | 4 |
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()); } |