Fixed wine prefix creation

This commit is contained in:
Observer KRypt0n_ 2022-09-28 11:54:35 +02:00
parent fae42d93a7
commit 9869696d76
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
2 changed files with 3 additions and 1 deletions

View file

@ -322,11 +322,12 @@ impl App {
.expect("None of wine builds are available");
let wine = Wine::from_binary(wine)
.with_loader(WineLoader::Current)
.with_arch(WineArch::Win64);
match wine.update_prefix(&config.game.wine.prefix) {
Ok(output) => {
println!("Wine prefix created:\n\n{}", String::from_utf8_lossy(&output.stdout));
println!("Wine prefix created:\n{}", String::from_utf8_lossy(&output.stdout));
// Prepare DXVK downloader
match Installer::new(&dxvk_version.uri) {

View file

@ -512,6 +512,7 @@ impl App {
this.widgets.launch_game.set_sensitive(false);
let wine = Wine::from_binary(wine)
.with_loader(WineLoader::Current)
.with_arch(WineArch::Win64);
if let Err(err) = wine.update_prefix(&config.game.wine.prefix) {