[feat] listen to steam user changes

This commit is contained in:
2025-11-05 11:32:43 +08:00
parent 6710fe1754
commit c19adcc3f8
7 changed files with 274 additions and 3 deletions

View File

@@ -106,6 +106,11 @@ pub fn set_auto_login_user(user: &str) -> Result<String, String> {
Ok(format!("Set auto login user to {}", user))
}
#[tauri::command]
pub fn start_watch_loginusers(app: tauri::AppHandle, steam_dir: String) -> Result<(), String> {
wrap_err!(steam::watch::start_watch_loginusers(app, steam_dir))
}
#[tauri::command]
pub fn get_cs2_video_config(steam_dir: &str, steam_id32: u32) -> Result<VideoConfig, String> {
let p = format!(