diff options
author | Barnaby <22575741+barnabwhy@users.noreply.github.com> | 2022-03-11 03:27:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 03:27:16 +0000 |
commit | 5df2346ba1414fd43d80fc2919c2f880b7f8aeaf (patch) | |
tree | 850d6604f9b534aa3ec8af49e0728cc12d9b4862 /LauncherInjector/main.cpp | |
parent | 897eaa0761e1acaf7c9181f5a18d6b34ce6e2c76 (diff) | |
download | NorthstarLauncher-5df2346ba1414fd43d80fc2919c2f880b7f8aeaf.tar.gz NorthstarLauncher-5df2346ba1414fd43d80fc2919c2f880b7f8aeaf.zip |
Allow origin to start in the background (#108)
* Allow origin to start in the background when
* fix your format for gods sake
Diffstat (limited to 'LauncherInjector/main.cpp')
-rw-r--r-- | LauncherInjector/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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); |