diff options
| author | 2026-01-14 10:33:45 +0800 | |
|---|---|---|
| committer | 2026-01-14 10:33:45 +0800 | |
| commit | e274b51b98e047d9a9dab8fa2e5f6df63f0f3fc8 (patch) | |
| tree | f218db74b2d87364395e1f6873334d1bc4219f6d /src-tauri/src/launcher | |
| parent | 6d04672b3d293b6350fb4cf4710babbe5583dbc5 (diff) | |
| download | DropOut-e274b51b98e047d9a9dab8fa2e5f6df63f0f3fc8.tar.gz DropOut-e274b51b98e047d9a9dab8fa2e5f6df63f0f3fc8.zip | |
refactor: remove launcher and config modules to streamline codebase
Diffstat (limited to 'src-tauri/src/launcher')
| -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 |
3 files changed, 0 insertions, 42 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(); -} |