OneLauncher-Cracked/packages/oneclient_core/src/constants.rs
Julian Chang 29d1f1c9d2
Bugs
Fixed #492
Fixed #510
Fixed #506
Fixed #568
Fixed #582
Fixed #578
Fixed #567
Fixed #588
Fixed #585
Fixed #571
Fixed #587
Fixed #584
2026-07-15 13:41:43 -04:00

49 lines
2 KiB
Rust

pub const DUMMY_REPLACE_NEWLINE: &str = "\n";
pub const MICROSOFT_CLIENT_ID: &str = "9419b7ee-1448-4d1b-b52a-550d8f36ab56";
pub const MINECRAFT_SCOPES: &str = "XboxLive.SignIn XboxLive.offline_access";
pub const CURSEFORGE_API_KEY: &str = "$2a$10$6utA1UNSmFPrE/Lh7b7ndeeGmiOkjKNY8kpFB0fsmE/d42ZAfFgCe";
pub const DISCORD_CLIENT_ID: &str = "1426999264633946334";
pub const MODRINTH_API_URL: &str = "https://api.modrinth.com";
pub const MODRINTH_CDN_PREFIX: &str = "https://cdn.modrinth.com/data/";
pub const CURSEFORGE_API_URL: &str = "https://api.curseforge.com/v1";
pub const CURSEFORGE_GAME_ID: u32 = 432;
pub const METADATA_API_URL: &str = "https://meta.polyfrost.org";
pub const FEATURED_PACKAGES_URL: &str = "https://polyfrost.org/meta/onelauncher/featured.json";
pub const MCLOGS_API_URL: &str = "https://api.mclo.gs/1";
pub const SKYCLIENT_BASE_URL: &str =
"https://raw.githubusercontent.com/SkyblockClient/SkyblockClient-REPO/refs/heads/main/v1";
pub const META_URL_BASE: &str = "https://data-v2.polyfrost.org";
pub const TOS_URL: &str = "https://polyfrost.org/legal/terms";
pub const PRIVACY_URL: &str = "https://polyfrost.org/legal/privacy";
pub const PLUS_BACKEND_URL: &str = "https://plus.polyfrost.org";
pub const SENTRY_DSN: &str = match option_env!("ONECLIENT_SENTRY_DSN") {
Some(dsn) => dsn,
None => "https://e7dff7e07427e1a28b9212cfcc8ddc1e@o4511714343124992.ingest.us.sentry.io/4511714354135040",
};
pub const TARGET_OS: &str = cfg_select! {
target_os = "windows" => "windows",
target_os = "macos" => "osx",
target_os = "linux" => "linux"
};
pub const NATIVE_ARCH: &str = cfg_select! {
target_arch = "x86" => "32",
target_arch = "x86_64" => "64",
_ => "64"
};
pub const JAVA_BIN: &str = if cfg!(windows) { "javaw.exe" } else { "java" };
pub const ARCH_WIDTH: &str = if cfg!(target_pointer_width = "64") {
"64"
} else {
"32"
};
pub const LINE_ENDING: &str = if cfg!(windows) { "\r\n" } else { "\n" };
pub const CLASSPATH_SEPARATOR: &str = if cfg!(windows) { ";" } else { ":" };