aboutsummaryrefslogtreecommitdiff
path: root/LauncherInjector
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-19 03:13:28 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-19 03:13:28 +0000
commit75b9583a6b66c09596f4c0a25188ba4d99ca34da (patch)
tree4eef5ac3c28faa511d08be350f6bc028d5ebc290 /LauncherInjector
parent682a00eaac30139929b1bb179ae7f4aa1a038572 (diff)
downloadNorthstarLauncher-75b9583a6b66c09596f4c0a25188ba4d99ca34da.tar.gz
NorthstarLauncher-75b9583a6b66c09596f4c0a25188ba4d99ca34da.zip
openssl support
Diffstat (limited to 'LauncherInjector')
-rw-r--r--LauncherInjector/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/LauncherInjector/main.cpp b/LauncherInjector/main.cpp
index 703ee188..5828e9e2 100644
--- a/LauncherInjector/main.cpp
+++ b/LauncherInjector/main.cpp
@@ -54,7 +54,7 @@ int main(int argc, char* argv[]) {
if (!strcmp(argv[i], "-dedicated"))
isdedi = true;
- if (!GetProcessByName(L"Origin.exe") && !isdedi)
+ if (!isdedi && !GetProcessByName(L"Origin.exe") && !GetProcessByName(L"EADesktop.exe"))
{
// unpacked exe will crash if origin isn't open on launch, so launch it
// get origin path from registry, code here is reversed from OriginSDK.dll
@@ -80,7 +80,7 @@ int main(int argc, char* argv[]) {
CreateProcessA(originPath, (LPSTR)"", NULL, NULL, false, CREATE_DEFAULT_ERROR_MODE | CREATE_NEW_PROCESS_GROUP, NULL, NULL, (LPSTARTUPINFOA)&si, &pi);
// wait for origin to be ready, this process is created when origin is ready enough to launch game without any errors
- while (!GetProcessByName(L"OriginClientService.exe"))
+ while (!GetProcessByName(L"OriginClientService.exe") && !GetProcessByName(L"EADesktop.exe"))
Sleep(200);
}