mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-24 21:55:57 +00:00
Merge dev into task/discord
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
69e7bef868
13 files changed
+188
-38
No files matched your search
@@ -1303,6 +1303,17 @@ int plat_stderr_path(char *out, size_t cap) {
|
||||
return WideCharToMultiByte(CP_UTF8, 0, p, -1, out, (int)cap, NULL, NULL) != 0;
|
||||
}
|
||||
|
||||
// GetConsoleProcessList counts this process alone only when the console was created for it. The window is hidden first
|
||||
// and then the console freed: under Windows Terminal as the default terminal, freeing is what closes the terminal
|
||||
// window that opened beside the game.
|
||||
int plat_console_release_if_owned(void) {
|
||||
DWORD pids[2];
|
||||
if (!GetConsoleWindow() || GetConsoleProcessList(pids, 2) != 1) return 0;
|
||||
ShowWindow(GetConsoleWindow(), SW_HIDE);
|
||||
FreeConsole();
|
||||
return 1;
|
||||
}
|
||||
|
||||
// ---- desktop
|
||||
|
||||
int plat_clipboard_set(const char *utf8) {
|
||||
|
||||
Reference in new issue
Block a user