Fix unix build

This commit is contained in:
Thoronium
2023-04-26 15:17:27 -06:00
parent 5374e2b0b9
commit 17fed553da
2 changed files with 13 additions and 3 deletions

View File

@@ -308,6 +308,7 @@ fn is_grasscutter_running() -> bool {
!proc.is_empty()
}
#[cfg(windows)]
#[tauri::command]
fn restart_grasscutter(window: tauri::Window) -> bool {
let pid: usize = *GC_PID.lock().unwrap();
@@ -338,6 +339,7 @@ fn restart_grasscutter(window: tauri::Window) -> bool {
}
}
#[cfg(windows)]
#[tauri::command]
fn enable_grasscutter_watcher(window: tauri::Window, process: String) {
let grasscutter_name = process.clone();