From 2ad94a192b2a19c7b8a5ae0d22fbaf170c52808b Mon Sep 17 00:00:00 2001 From: LynithDev <61880709+LynithDev@users.noreply.github.com> Date: Sun, 19 Jul 2026 10:34:08 +0200 Subject: [PATCH] feat: Use different launcher folder in dev builds --- packages/oneclient_core/src/paths.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/oneclient_core/src/paths.rs b/packages/oneclient_core/src/paths.rs index a4f18c3d..032bd3e3 100644 --- a/packages/oneclient_core/src/paths.rs +++ b/packages/oneclient_core/src/paths.rs @@ -7,7 +7,12 @@ use crate::LauncherResult; const QUALIFIER: &str = "org"; const ORGANIZATION: &str = "Polyfrost"; +#[cfg(not(debug_assertions))] const APPLICATION: &str = "OneClient"; +// Dev builds use a separate launcher dir (e.g. `oneclient-dev`) so a running +// dev environment never touches prod data. +#[cfg(debug_assertions)] +const APPLICATION: &str = "OneClient-dev"; static PROJECT_DIRS: OnceLock = OnceLock::new(); static LAUNCHER_DIR_OVERRIDE: OnceLock = OnceLock::new();