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 {
|
else {
|
||||||
// Set game edition
|
|
||||||
let config = lib::config::get().expect("Failed to load config");
|
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());
|
anime_game_core::consts::set_game_edition(config.launcher.edition.into());
|
||||||
|
|
||||||
// Load main window
|
// Load main window
|
||||||
|
|
Loading…
Reference in a new issue