aboutsummaryrefslogtreecommitdiffstats
path: root/src/constants.rs
diff options
context:
space:
mode:
authorFilip Wandzio <contact@philw.dev>2026-01-22 23:14:08 +0100
committerFilip Wandzio <contact@philw.dev>2026-01-22 23:14:08 +0100
commit72ddd7b7704f2087a52c9c0552446682918c513b (patch)
treee5134f215ea82c1fc8eda17b34e426a7b1dfafc6 /src/constants.rs
downloaddml-72ddd7b7704f2087a52c9c0552446682918c513b.tar.gz
dml-72ddd7b7704f2087a52c9c0552446682918c513b.zip
Implement basic game files download logic
Implement core clap arguments Respect XDG_BASE_DIR Currently library extraction is broken because it assumes every instace has it's own library folder. This should be refactored so instances share libraries Signed-off-by: Filip Wandzio <contact@philw.dev>
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/constants.rs b/src/constants.rs
new file mode 100644
index 0000000..52833b2
--- /dev/null
+++ b/src/constants.rs
@@ -0,0 +1,13 @@
1#![allow(dead_code)]
2
3use std::time::Duration;
4
5pub const VERSION_MANIFEST_URL: &str =
6 "https://launchermeta.mojang.com/mc/game/version_manifest.json";
7
8pub const DOWNLOAD_RETRIES: usize = 3;
9pub const DOWNLOAD_BACKOFF: Duration = Duration::from_millis(400);
10
11pub const DEFAULT_MAX_MEMORY_MB: u32 = 2048;
12pub const DEFAULT_JAVA_PATH: &str = "java";
13pub const DEFAULT_VERSION: &str = "latest";