Fixed Polish LANG value, made FSync default wine sync option

This commit is contained in:
Observer KRypt0n_ 2022-08-19 12:14:51 +02:00
parent a53facfab3
commit b27bda582e
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
2 changed files with 3 additions and 2 deletions

View file

@ -84,7 +84,7 @@ impl WineLang {
Self::Russian => "ru_RU.UTF8",
Self::German => "de_DE.UTF8",
Self::Portuguese => "pt_PT.UTF8",
Self::Polish => "pl-PL.UTF8",
Self::Polish => "pl_PL.UTF8",
Self::French => "fr_FR.UTF8",
Self::Spanish => "es_ES.UTF8",
Self::Chinese => "zh_CN.UTF8",

View file

@ -13,7 +13,7 @@ pub enum WineSync {
impl Default for WineSync {
fn default() -> Self {
Self::ESync
Self::FSync
}
}
@ -32,6 +32,7 @@ impl TryFrom<u32> for WineSync {
1 => Ok(Self::ESync),
2 => Ok(Self::FSync),
3 => Ok(Self::Futex2),
_ => Err(String::from("Failed to convert number to WineSync enum"))
}
}