summaryrefslogtreecommitdiffstats
path: root/src/launcher/constants.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/launcher/constants.rs')
-rw-r--r--src/launcher/constants.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/launcher/constants.rs b/src/launcher/constants.rs
index 83611c9..a0ef036 100644
--- a/src/launcher/constants.rs
+++ b/src/launcher/constants.rs
@@ -1,4 +1,6 @@
use const_format::formatcp;
+use lazy_static::lazy_static;
+use regex::Regex;
const PKG_NAME: &str = env!("CARGO_PKG_NAME");
const PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
@@ -8,3 +10,9 @@ pub const USER_AGENT: &str = formatcp!("{PKG_NAME}/{PKG_VERSION} (in {CRATE_NAME
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://launchermeta.mojang.com/v1/products/java-runtime/2ec0cc96c44e5a76b9c8b7c39df7210883d12871/all.json";
+
+pub const NATIVES_PREFIX: &str = "natives-";
+
+lazy_static! {
+ pub static ref NATIVES_DIR_PATTERN: Regex = Regex::new("^natives-(\\d+)").unwrap();
+} \ No newline at end of file