summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2025-01-23 18:53:50 -0600
committerLibravatar bigfoot547 <[email protected]>2025-01-23 18:53:50 -0600
commit1ddf56ed6556b990a8c37267430e129098ba866b (patch)
tree11ca992edf646d718882510bc2f7531fe2f89853
parentfix log arg on windows (diff)
make auth moduleiced
-rw-r--r--src/auth.rs3
-rw-r--r--src/launcher/constants.rs4
-rw-r--r--src/lib.rs1
3 files changed, 7 insertions, 1 deletions
diff --git a/src/auth.rs b/src/auth.rs
new file mode 100644
index 0000000..a11c0de
--- /dev/null
+++ b/src/auth.rs
@@ -0,0 +1,3 @@
+struct AuthenticationDatabase {
+
+}
diff --git a/src/launcher/constants.rs b/src/launcher/constants.rs
index d2f1b4f..aba0650 100644
--- a/src/launcher/constants.rs
+++ b/src/launcher/constants.rs
@@ -16,6 +16,8 @@ pub const NATIVES_PREFIX: &str = "natives-";
pub const DEF_INSTANCE_NAME: &'static str = "default";
pub const DEF_PROFILE_NAME: &'static str = "default";
+// 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();
-} \ No newline at end of file
+}
diff --git a/src/lib.rs b/src/lib.rs
index 255d914..05c0c7e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -2,3 +2,4 @@ mod util;
pub mod version;
pub mod assets;
pub mod launcher;
+mod auth;