From 791614bdcd7f702f161930db4e5cf2047081d6fa Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Thu, 3 Feb 2022 22:25:05 +0200 Subject: [PATCH] Added Futex2 option for Wine synchronization settings --- public/locales/de-de.yaml | 1 + public/locales/en-us.yaml | 1 + public/locales/es-es.yaml | 1 + public/locales/fr-fr.yaml | 1 + public/locales/hu-hu.yaml | 1 + public/locales/id-id.yaml | 1 + public/locales/it-it.yaml | 1 + public/locales/ru-ru.yaml | 1 + public/locales/uwu.yaml | 1 + src/settings.svelte | 3 ++- src/ts/launcher/states/Launch.ts | 7 +++++++ 11 files changed, 18 insertions(+), 1 deletion(-) diff --git a/public/locales/de-de.yaml b/public/locales/de-de.yaml index b6f7b2c..fb169c8 100644 --- a/public/locales/de-de.yaml +++ b/public/locales/de-de.yaml @@ -141,6 +141,7 @@ settings: none: Aus esync: Esync fsync: Fsync + futex2: Futex2 # Wine Virtual Desktop winevd: diff --git a/public/locales/en-us.yaml b/public/locales/en-us.yaml index 0a4ffcd..285f9ad 100644 --- a/public/locales/en-us.yaml +++ b/public/locales/en-us.yaml @@ -141,6 +141,7 @@ settings: none: None esync: ESync fsync: FSync + futex2: Futex2 # Wine Virtual Desktop winevd: diff --git a/public/locales/es-es.yaml b/public/locales/es-es.yaml index 11ea417..28d3d1d 100644 --- a/public/locales/es-es.yaml +++ b/public/locales/es-es.yaml @@ -141,6 +141,7 @@ settings: none: Ninguna esync: ESync fsync: FSync + futex2: Futex2 # Escritorio Virtual de Wine winevd: diff --git a/public/locales/fr-fr.yaml b/public/locales/fr-fr.yaml index 6bc11a9..d610c82 100644 --- a/public/locales/fr-fr.yaml +++ b/public/locales/fr-fr.yaml @@ -143,6 +143,7 @@ settings: none: Aucune esync: ESync fsync: FSync + futex2: Futex2 # Wine Virtual Desktop winevd: diff --git a/public/locales/hu-hu.yaml b/public/locales/hu-hu.yaml index 80455ee..45fee7a 100644 --- a/public/locales/hu-hu.yaml +++ b/public/locales/hu-hu.yaml @@ -141,6 +141,7 @@ settings: none: Nincs esync: ESync fsync: FSync + futex2: Futex2 # GameMode gamemode: diff --git a/public/locales/id-id.yaml b/public/locales/id-id.yaml index 5405720..c57a47b 100644 --- a/public/locales/id-id.yaml +++ b/public/locales/id-id.yaml @@ -140,6 +140,7 @@ settings: none: None esync: ESync fsync: FSync + futex2: Futex2 # Wine Virtual Desktop winevd: diff --git a/public/locales/it-it.yaml b/public/locales/it-it.yaml index 84c4dd5..1c18754 100644 --- a/public/locales/it-it.yaml +++ b/public/locales/it-it.yaml @@ -140,6 +140,7 @@ settings: none: Nessuno esync: ESync fsync: FSync + futex2: Futex2 # Wine Virtual Desktop winevd: diff --git a/public/locales/ru-ru.yaml b/public/locales/ru-ru.yaml index 3301077..fed8ed3 100644 --- a/public/locales/ru-ru.yaml +++ b/public/locales/ru-ru.yaml @@ -141,6 +141,7 @@ settings: none: Отключена esync: ESync fsync: FSync + futex2: Futex2 # Виртуальный рабочий стол Wine winevd: diff --git a/public/locales/uwu.yaml b/public/locales/uwu.yaml index 2550639..c9c3b34 100644 --- a/public/locales/uwu.yaml +++ b/public/locales/uwu.yaml @@ -141,6 +141,7 @@ settings: none: none esync: Esync fsync: Fsync + futex2: Futex2 # Wine Virtual Desktop winevd: diff --git a/src/settings.svelte b/src/settings.svelte index 19387bb..bb46c70 100644 --- a/src/settings.svelte +++ b/src/settings.svelte @@ -320,7 +320,8 @@ items={{ 'none': 'settings.enhancements.items.winesync.items.none', 'esync': 'settings.enhancements.items.winesync.items.esync', - 'fsync': 'settings.enhancements.items.winesync.items.fsync' + 'fsync': 'settings.enhancements.items.winesync.items.fsync', + 'futex2': 'settings.enhancements.items.winesync.items.futex2' }} /> diff --git a/src/ts/launcher/states/Launch.ts b/src/ts/launcher/states/Launch.ts index 2cd08a6..5864d2a 100644 --- a/src/ts/launcher/states/Launch.ts +++ b/src/ts/launcher/states/Launch.ts @@ -87,6 +87,13 @@ export default (launcher: Launcher): Promise => { env['WINEESYNC'] = 1; env['WINEFSYNC'] = 1; + break; + + case 'futex2': + env['WINEESYNC'] = 1; + env['WINEFSYNC'] = 1; + env['WINEFSYNC_FUTEX2'] = 1; + break; }