aboutsummaryrefslogtreecommitdiff
path: root/LauncherInjector
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-08-27 04:34:40 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-08-27 04:34:40 +0100
commit83ea828342e59af290857b0854ba768d9412e92c (patch)
tree4f81ef6a5ef6db94448df52425d3fce2a98bd460 /LauncherInjector
parentf8cdd53561dc5bb37b5387f9ad3b966de8aa2a58 (diff)
downloadNorthstarLauncher-83ea828342e59af290857b0854ba768d9412e92c.tar.gz
NorthstarLauncher-83ea828342e59af290857b0854ba768d9412e92c.zip
fix launcher steam support (hopefully) through disabling steam overlay
Diffstat (limited to 'LauncherInjector')
-rw-r--r--LauncherInjector/main.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/LauncherInjector/main.cpp b/LauncherInjector/main.cpp
index 2d846f6f..86c50804 100644
--- a/LauncherInjector/main.cpp
+++ b/LauncherInjector/main.cpp
@@ -101,7 +101,7 @@ int main()
// check for steam dll and unpacked exe
bool unpacked = fs::exists("Titanfall2-unpacked.exe");
- bool steamBuild = !unpacked && fs::exists("steam_api64.dll");
+ //bool steamBuild = !unpacked && fs::exists("steam_api64.dll"); // dont actually need to check for this
// unpacked origin
if (unpacked)
@@ -150,10 +150,11 @@ int main()
// hook launcher
DWORD launcherPID;
- if (steamBuild)
- while (!(launcherPID = GetProcessByName(L"EASteamProxy.exe"))) Sleep(50);
- else
- while (!(launcherPID = GetProcessByName(L"Origin.exe"))) Sleep(50);
+ // dont actually need to check for steam, origin launches game no matter what
+ //if (steamBuild)
+ // while (!(launcherPID = GetProcessByName(L"EASteamProxy.exe"))) Sleep(50);
+ //else
+ while (!(launcherPID = GetProcessByName(L"Origin.exe"))) Sleep(50);
// injector should clean itself up after its job is done
InjectInjectorIntoProcess(launcherPID);