launcher: option to close the terminal after a clean exit (#1869)

launcher: close the terminal after a clean exit and run several games at once

Co-authored-by: nmzik <Nmzik@mail.ru>
This commit is contained in:
Mr. Big Britchesandnmzik authored and GitHub committed 2026-10-24 20:06:45 +02:00
1 parent 8291cfeb04
commit 906d25568f
4 files changed
+87 -115

No files matched your search

+2 -1
View File
@@ -149,7 +149,8 @@ int LoadExec(const char* path, const char* const argv[]) {
}
CloseHandle(process.hThread);
CloseHandle(process.hProcess);
std::quick_exit(0);
// Nonzero, or the launcher's "cmd /K ... && exit" closes the console the new process shares.
std::quick_exit(1);
#else
std::ifstream command("/proc/self/cmdline", std::ios::binary);
std::vector<std::string> host_arguments;