mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-03-19 22:50:09 +03:00
parent
ac3d29de58
commit
f66624d40d
1 changed files with 13 additions and 1 deletions
14
src/main.rs
14
src/main.rs
|
@ -81,9 +81,21 @@ fn main() {
|
|||
}
|
||||
|
||||
else {
|
||||
// Set game edition
|
||||
let config = lib::config::get().expect("Failed to load config");
|
||||
|
||||
// Create wine builds folder
|
||||
if !Path::new(&config.game.wine.builds).exists() {
|
||||
fs::create_dir_all(config.game.wine.builds)
|
||||
.expect("Failed to create wine builds directory");
|
||||
}
|
||||
|
||||
// Create DXVK builds folder
|
||||
if !Path::new(&config.game.dxvk.builds).exists() {
|
||||
fs::create_dir_all(config.game.dxvk.builds)
|
||||
.expect("Failed to create DXVK builds directory");
|
||||
}
|
||||
|
||||
// Set game edition
|
||||
anime_game_core::consts::set_game_edition(config.launcher.edition.into());
|
||||
|
||||
// Load main window
|
||||
|
|
Loading…
Add table
Reference in a new issue