mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-02-16 15:22:01 +03:00
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.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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue