[feat] basic steam user parse

todo: steamid32 + avatar
This commit is contained in:
Purp1e
2025-03-23 21:55:17 +08:00
parent 03e5704a6e
commit 45e4ab1c6a
23 changed files with 6158 additions and 50 deletions

View File

@@ -1,5 +1,6 @@
use crate::steam;
use crate::tool::*;
use crate::vdf::preset;
use crate::wrap_err;
use anyhow::Result;
@@ -64,11 +65,10 @@ pub fn set_powerplan(plan: i32) -> Result<(), String> {
Ok(())
}
// TODO watch_steam_users
// TODO watch_video_settings
// TODO watch + cancel
// TODO fs_list_dir
// TODO fs_watch_dir
#[tauri::command]
pub fn get_steam_users(steam_dir: &str) -> Result<Vec<preset::User>, String> {
wrap_err!(preset::get_users(steam_dir))
}
#[tauri::command]
pub fn set_auto_login_user(user: &str) -> Result<String, String> {