OneLauncher-Cracked/packages/oneclient_common/src/process.rs
2026-09-18 23:05:50 +02:00

12 lines
290 B
Rust

pub fn no_window(command: &mut std::process::Command) {
#[cfg(windows)]
{
use std::os::windows::process::CommandExt;
const CREATE_NO_WINDOW: u32 = 0x0800_0000;
command.creation_flags(CREATE_NO_WINDOW);
}
#[cfg(not(windows))]
let _ = command;
}