diff options
| author | 2026-01-13 14:31:37 +0800 | |
|---|---|---|
| committer | 2026-01-13 14:31:37 +0800 | |
| commit | f878efe456e8f5c557f2cde9d71f120f3e0b38cd (patch) | |
| tree | d6e54b7dc262502f2ef9dc011fcff6ad2aba2d54 /src-tauri/src/launcher/mod.rs | |
| parent | 225f87bf713492daef83a85e9e2a0bfdb0f9d23f (diff) | |
| download | DropOut-f878efe456e8f5c557f2cde9d71f120f3e0b38cd.tar.gz DropOut-f878efe456e8f5c557f2cde9d71f120f3e0b38cd.zip | |
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.
Diffstat (limited to 'src-tauri/src/launcher/mod.rs')
| -rw-r--r-- | src-tauri/src/launcher/mod.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src-tauri/src/launcher/mod.rs b/src-tauri/src/launcher/mod.rs new file mode 100644 index 0000000..0359d3e --- /dev/null +++ b/src-tauri/src/launcher/mod.rs @@ -0,0 +1,19 @@ +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(); +}
\ No newline at end of file |