diff options
Diffstat (limited to 'ozone/src/launcher/constants.rs')
| -rw-r--r-- | ozone/src/launcher/constants.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ozone/src/launcher/constants.rs b/ozone/src/launcher/constants.rs new file mode 100644 index 0000000..4506ab5 --- /dev/null +++ b/ozone/src/launcher/constants.rs @@ -0,0 +1,18 @@ +use lazy_static::lazy_static; +use regex::Regex; + +pub const URL_VERSION_MANIFEST: &str = "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json"; +pub const URL_RESOURCE_BASE: &str = "https://resources.download.minecraft.net/"; +pub const URL_JRE_MANIFEST: &str = "https://piston-meta.mojang.com/v1/products/java-runtime/2ec0cc96c44e5a76b9c8b7c39df7210883d12871/all.json"; + +pub const NATIVES_PREFIX: &str = "natives-"; + +pub const DEF_INSTANCE_NAME: &str = "default"; +pub const DEF_PROFILE_NAME: &str = "default"; + +// https://github.com/unmojang/FjordLauncher/pull/14/files +// https://login.live.com/oauth20_authorize.srf?client_id=00000000402b5328&redirect_uri=ms-xal-00000000402b5328://auth&response_type=token&display=touch&scope=service::user.auth.xboxlive.com::MBI_SSL%20offline_access&prompt=select_account + +lazy_static! { + pub static ref NATIVES_DIR_PATTERN: Regex = Regex::new("^natives-(\\d+)").unwrap(); +} |
