From f1b10c6bea05f876c5a26fb2885a17f0606ebef6 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Sat, 25 Mar 2023 13:37:03 +0200 Subject: [PATCH] feat: first run: made default game folder name depend on game edition --- src/ui/first_run/default_paths.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui/first_run/default_paths.rs b/src/ui/first_run/default_paths.rs index 3c5d7a6..d2543d9 100644 --- a/src/ui/first_run/default_paths.rs +++ b/src/ui/first_run/default_paths.rs @@ -264,12 +264,16 @@ impl SimpleAsyncComponent for DefaultPathsApp { self.runners = result.join("runners"); self.dxvks = result.join("dxvks"); self.prefix = result.join("prefix"); - self.game = result.join("Genshin Impact"); // TODO: change it based on GameEdition self.fps_unlocker = result.join("fps-unlocker"); self.components = result.join("components"); self.patch = result.join("patch"); self.temp = result.clone(); + self.game = result.join(match CONFIG.launcher.edition.into() { + GameEdition::Global => concat!("Ge", "nshi", "n Imp", "act"), + GameEdition::China => concat!("Yu", "anS", "hen") + }); + self.launcher = result; }