From 5df2346ba1414fd43d80fc2919c2f880b7f8aeaf Mon Sep 17 00:00:00 2001 From: Barnaby <22575741+barnabwhy@users.noreply.github.com> Date: Fri, 11 Mar 2022 03:27:16 +0000 Subject: Allow origin to start in the background (#108) * Allow origin to start in the background when * fix your format for gods sake --- LauncherInjector/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LauncherInjector/main.cpp b/LauncherInjector/main.cpp index 02f82342..f721a54f 100644 --- a/LauncherInjector/main.cpp +++ b/LauncherInjector/main.cpp @@ -142,10 +142,15 @@ void EnsureOriginStarted() return; } + printf("[*] Starting Origin...\n"); + PROCESS_INFORMATION pi; memset(&pi, 0, sizeof(pi)); STARTUPINFO si; memset(&si, 0, sizeof(si)); + si.cb = sizeof(STARTUPINFO); + si.dwFlags = STARTF_USESHOWWINDOW; + si.wShowWindow = SW_MINIMIZE; CreateProcessA( originPath, (char*)"", NULL, NULL, false, CREATE_DEFAULT_ERROR_MODE | CREATE_NEW_PROCESS_GROUP, NULL, NULL, (LPSTARTUPINFOA)&si, &pi); -- cgit v1.2.3