[feat] add check path logic to prepare

todo: more complete logic
This commit is contained in:
Purp1e
2025-03-18 02:16:15 +08:00
parent db3cf9aef2
commit 12e908f107
3 changed files with 28 additions and 17 deletions

View File

@@ -52,6 +52,6 @@ pub fn set_auto_login_user(user: &str) -> String {
}
#[tauri::command]
pub fn check_file_exists(file: &str) -> bool {
std::path::Path::new(&file).exists()
pub fn check_path(path: &str) -> bool {
std::path::Path::new(&path).exists()
}

View File

@@ -82,7 +82,7 @@ fn main() {
cmds::kill_steam,
cmds::get_steam_path,
cmds::set_auto_login_user,
cmds::check_file_exists,
cmds::check_path,
on_button_clicked
])
.run(ctx)