feat: first run: made default game folder name depend on game edition
This commit is contained in:
parent
71d454d87c
commit
f1b10c6bea
1 changed files with 5 additions and 1 deletions
|
@ -264,12 +264,16 @@ impl SimpleAsyncComponent for DefaultPathsApp {
|
||||||
self.runners = result.join("runners");
|
self.runners = result.join("runners");
|
||||||
self.dxvks = result.join("dxvks");
|
self.dxvks = result.join("dxvks");
|
||||||
self.prefix = result.join("prefix");
|
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.fps_unlocker = result.join("fps-unlocker");
|
||||||
self.components = result.join("components");
|
self.components = result.join("components");
|
||||||
self.patch = result.join("patch");
|
self.patch = result.join("patch");
|
||||||
self.temp = result.clone();
|
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;
|
self.launcher = result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue