diff options
| -rw-r--r-- | src-tauri/src/launcher/config.rs | 13 | ||||
| -rw-r--r-- | src-tauri/src/launcher/launcher.rs | 17 | ||||
| -rw-r--r-- | src-tauri/src/launcher/mod.rs | 12 | ||||
| -rw-r--r-- | src-tauri/src/main.rs | 1 |
4 files changed, 0 insertions, 43 deletions
diff --git a/src-tauri/src/launcher/config.rs b/src-tauri/src/launcher/config.rs deleted file mode 100644 index 7637268..0000000 --- a/src-tauri/src/launcher/config.rs +++ /dev/null @@ -1,13 +0,0 @@ -pub struct Config { - pub username: String, - pub resolution: (u32, u32), -} - -impl Config { - pub fn new(username: &str, resolution: (u32, u32)) -> Self { - Config { - username: username.to_string(), - resolution, - } - } -} diff --git a/src-tauri/src/launcher/launcher.rs b/src-tauri/src/launcher/launcher.rs deleted file mode 100644 index 7b671c9..0000000 --- a/src-tauri/src/launcher/launcher.rs +++ /dev/null @@ -1,17 +0,0 @@ -pub struct Launcher { - pub config: crate::launcher::config::Config, -} - -impl Launcher { - pub fn new(config: crate::launcher::config::Config) -> Self { - Launcher { config } - } - - pub fn launch(&self) { - println!("启动游戏,用户名: {}", self.config.username); - println!( - "分辨率: {}x{}", - self.config.resolution.0, self.config.resolution.1 - ); - } -} diff --git a/src-tauri/src/launcher/mod.rs b/src-tauri/src/launcher/mod.rs deleted file mode 100644 index d260703..0000000 --- a/src-tauri/src/launcher/mod.rs +++ /dev/null @@ -1,12 +0,0 @@ -pub mod config; -pub mod launcher; - -pub use config::Config; -pub use launcher::Launcher; - -pub fn start() { - println!("启动器启动中..."); - let config = Config::new("玩家", (1920, 1080)); - let launcher = Launcher::new(config); - launcher.launch(); -} diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 74b792a..54da124 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -8,7 +8,6 @@ use tokio::io::{AsyncBufReadExt, BufReader}; use tokio::process::Command; mod core; -mod launcher; mod utils; // Global storage for MS refresh token (not in Account struct to keep it separate) |