[feat] basic open path but having issue of path with spaces

This commit is contained in:
Purp1e
2025-03-21 16:02:47 +08:00
parent 90a05017ce
commit 2e18fbdffd
5 changed files with 52 additions and 9 deletions

View File

@@ -43,6 +43,11 @@ pub fn get_cs_path(name: &str) -> Result<String, String> {
wrap_err!(steam::path::get_cs_path(name))
}
#[tauri::command]
pub fn open_path(path: &str) -> Result<(), String> {
wrap_err!(common::open_path(path))
}
#[tauri::command]
pub fn get_powerplan() -> Result<String, String> {
#[cfg(target_os = "windows")]