mirror of
https://github.com/an-anime-team/sleepy-launcher.git
synced 2025-03-15 06:28:27 +03:00
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");
|
||||
|
||||
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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue