3fd4970a37886413cc8ecbd7cf8550be4465e0c4
1 use sysinfo
::{ ProcessExt
, SystemExt
};
3 pub fn is_valheim_running() -> bool
{
4 let mut system
= sysinfo
::System
::new_all();
6 let process
= system
.get_process_by_name("valheim_server");
8 if process
.len() >= 1 {
9 println!("Valheim running");
12 println!("Valheim not running");