aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/launcher
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2026-01-13 14:31:37 +0800
committerHsiangNianian <i@jyunko.cn>2026-01-13 14:31:37 +0800
commitf878efe456e8f5c557f2cde9d71f120f3e0b38cd (patch)
treed6e54b7dc262502f2ef9dc011fcff6ad2aba2d54 /src/launcher
parent225f87bf713492daef83a85e9e2a0bfdb0f9d23f (diff)
downloadDropOut-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/launcher')
-rw-r--r--src/launcher/config.rs13
-rw-r--r--src/launcher/launcher.rs15
-rw-r--r--src/launcher/mod.rs19
3 files changed, 0 insertions, 47 deletions
diff --git a/src/launcher/config.rs b/src/launcher/config.rs
deleted file mode 100644
index fafc229..0000000
--- a/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,
- }
- }
-} \ No newline at end of file
diff --git a/src/launcher/launcher.rs b/src/launcher/launcher.rs
deleted file mode 100644
index 5ccf443..0000000
--- a/src/launcher/launcher.rs
+++ /dev/null
@@ -1,15 +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);
- }
-} \ No newline at end of file
diff --git a/src/launcher/mod.rs b/src/launcher/mod.rs
deleted file mode 100644
index 0359d3e..0000000
--- a/src/launcher/mod.rs
+++ /dev/null
@@ -1,19 +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();
-} \ No newline at end of file