aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2026-01-13 16:24:07 +0800
committerHsiangNianian <i@jyunko.cn>2026-01-13 16:24:07 +0800
commit1165fc8096d027915fca8a9cfa8ce9e73a2f0036 (patch)
tree6d4deef0bdcd4da6f2b85f673b11717968554a4a /src-tauri/src/main.rs
parentaf43ce8112fdd202ab98236567702bbed50e7cab (diff)
downloadDropOut-1165fc8096d027915fca8a9cfa8ce9e73a2f0036.tar.gz
DropOut-1165fc8096d027915fca8a9cfa8ce9e73a2f0036.zip
feat: add user properties handling and debug logging in game launch argumentsv0.1.4
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 6218fb7..ed1fd16 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -249,6 +249,7 @@ async fn start_game(
replacements.insert("${auth_access_token}", "null".to_string()); // Offline
replacements.insert("${user_type}", "mojang".to_string());
replacements.insert("${version_type}", "release".to_string());
+ replacements.insert("${user_properties}", "{}".to_string()); // Correctly pass empty JSON object for user properties
if let Some(minecraft_arguments) = &version_details.minecraft_arguments {
// Legacy string
@@ -314,6 +315,8 @@ async fn start_game(
}
println!("Launching game with {} args...", args.len());
+ // Debug: Print arguments to help diagnose issues
+ println!("Launch Args: {:?}", args);
// Spawn the process
let mut command = std::process::Command::new("java");