Fixed wine prefix creation
This commit is contained in:
parent
fae42d93a7
commit
9869696d76
2 changed files with 3 additions and 1 deletions
|
@ -322,11 +322,12 @@ impl App {
|
||||||
.expect("None of wine builds are available");
|
.expect("None of wine builds are available");
|
||||||
|
|
||||||
let wine = Wine::from_binary(wine)
|
let wine = Wine::from_binary(wine)
|
||||||
|
.with_loader(WineLoader::Current)
|
||||||
.with_arch(WineArch::Win64);
|
.with_arch(WineArch::Win64);
|
||||||
|
|
||||||
match wine.update_prefix(&config.game.wine.prefix) {
|
match wine.update_prefix(&config.game.wine.prefix) {
|
||||||
Ok(output) => {
|
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
|
// Prepare DXVK downloader
|
||||||
match Installer::new(&dxvk_version.uri) {
|
match Installer::new(&dxvk_version.uri) {
|
||||||
|
|
|
@ -512,6 +512,7 @@ impl App {
|
||||||
this.widgets.launch_game.set_sensitive(false);
|
this.widgets.launch_game.set_sensitive(false);
|
||||||
|
|
||||||
let wine = Wine::from_binary(wine)
|
let wine = Wine::from_binary(wine)
|
||||||
|
.with_loader(WineLoader::Current)
|
||||||
.with_arch(WineArch::Win64);
|
.with_arch(WineArch::Win64);
|
||||||
|
|
||||||
if let Err(err) = wine.update_prefix(&config.game.wine.prefix) {
|
if let Err(err) = wine.update_prefix(&config.game.wine.prefix) {
|
||||||
|
|
Loading…
Reference in a new issue