From f878efe456e8f5c557f2cde9d71f120f3e0b38cd Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Tue, 13 Jan 2026 14:31:37 +0800 Subject: feat: add Minecraft DropOut launcher with version fetching and basic UI - Implemented version manifest fetching from Mojang API. - Created launcher configuration and main launcher logic. - Added SVG and PNG icons for the application. - Developed a simple HTML/CSS interface for the launcher. - Integrated Tauri commands for backend communication. - Added utility functions for file operations and config parsing. --- src-tauri/src/launcher/launcher.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src-tauri/src/launcher/launcher.rs (limited to 'src-tauri/src/launcher/launcher.rs') diff --git a/src-tauri/src/launcher/launcher.rs b/src-tauri/src/launcher/launcher.rs new file mode 100644 index 0000000..5ccf443 --- /dev/null +++ b/src-tauri/src/launcher/launcher.rs @@ -0,0 +1,15 @@ +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); + } +} \ No newline at end of file -- cgit v1.2.3-70-g09d2