[feat] basic steam user parse
todo: steamid32 + avatar
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user