You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
What's Fixed & Added:
USA (CUSA01047) Game Language Support (src/launcher, run.bat):
Added Portuguese (Brazil) (17), Spanish (Latin America) (20), and French (Canada) (22) to the Game Language selector (kLanguages[] in ui.cpp, with trophy localizations already present in trophy_db.cpp), and updated RC_LANGUAGE notes in config.h and run.bat.
Removed the legacy 17 -> 7 migration in LauncherConfig::LoadFromFile (config.cpp) so Brazilian Portuguese persists across launcher launches.
Launcher STOP GAME Process Termination & Pipe Deadlock Fixes (launcher_process.cpp):
Windows: Assigned spawned game and cmd.exe /c custom command processes to a Windows Job Object (JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE), restricted inherited handles to the stdout/stderr write pipe via PROC_THREAD_ATTRIBUTE_HANDLE_LIST, quoted binary paths containing spaces, launched with CREATE_NO_WINDOW, and switched stdout capture to non-blocking PeekNamedPipe polling so STOP GAME terminates the full process tree without hanging the UI.
Linux: Isolated child processes into their own process group (setpgid), switched pipe capture to non-blocking O_NONBLOCK + poll(), and updated Terminate() to signal (SIGTERM -> SIGKILL) and reap the full -child_pid_ process group.
Shared lifecycle: Joined reader_thread_ before closing read handles/descriptors (CleanupHandlesLocked) and tied IsRunning() directly to OS process status (WaitForSingleObject / waitpid) instead of pipe EOF.