feat: first run: made default game folder name depend on game edition

This commit is contained in:
Observer KRypt0n_ 2023-03-25 13:37:03 +02:00
parent 71d454d87c
commit f1b10c6bea
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2

View file

@ -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;
}