From 75b9583a6b66c09596f4c0a25188ba4d99ca34da Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Sun, 19 Dec 2021 03:13:28 +0000 Subject: openssl support --- LauncherInjector/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LauncherInjector') 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); } -- cgit v1.2.3