From 7375c7436a2acec3fce06e586b97418d0b754767 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Fri, 4 Feb 2022 20:23:22 +0200 Subject: [PATCH] Several changes - reworked `enhancements` locales structure; added separate "Wine", "Game" and "Launcher" sections to the "Enhancements" settings - added "Use terminal" option to run the wine command in a separate terminal window --- public/locales/de-de.yaml | 162 ++++++++++++++++-------------- public/locales/en-us.yaml | 156 ++++++++++++++++------------- public/locales/es-es.yaml | 164 +++++++++++++++++-------------- public/locales/fr-fr.yaml | 160 +++++++++++++++++------------- public/locales/hu-hu.yaml | 156 ++++++++++++++++------------- public/locales/id-id.yaml | 157 ++++++++++++++++------------- public/locales/it-it.yaml | 154 ++++++++++++++++------------- public/locales/nb-no.yaml | 153 +++++++++++++++------------- public/locales/ru-ru.yaml | 154 ++++++++++++++++------------- public/locales/uwu.yaml | 154 ++++++++++++++++------------- src/defaultSettings.ts | 33 ++++--- src/settings.svelte | 88 ++++++++++------- src/ts/launcher/states/Launch.ts | 128 ++++++++++++++---------- 13 files changed, 1014 insertions(+), 805 deletions(-) diff --git a/public/locales/de-de.yaml b/public/locales/de-de.yaml index 2c36143..412212b 100644 --- a/public/locales/de-de.yaml +++ b/public/locales/de-de.yaml @@ -74,15 +74,15 @@ settings: launcher: title: Launcher items: - en-us: Englisch (US) - ru-ru: Russisch - es-es: Spanisch + en-us: English (US) + ru-ru: Русский + es-es: Español de-de: Deutsch fr-fr: Français it-it: Italiano hu-hu: Magyar id-id: Bahasa Indonesia - nb-no: Norwegisch + nb-no: Norsk uwu: Engwish # Spiel sprachpaket auswahl @@ -124,79 +124,95 @@ settings: # Verberssungen enhancements: title: Verbesserungen - items: - # Borderless Window - borderless_window: - title: Allow borderless window - tooltip: Removes the window borders when playing in windowed mode. - To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. - - # HUD - hud: - title: HUD - items: - none: Aus - dxvk: DXVK - mangohud: MangoHUD - - # Wine synchronization - winesync: - title: Wine Synchronisation - tooltip: Esync ist ein Mechanismus zur Synchronisierung von Multi-Thread-Operationen womit die Leistung Ihres Spiels verbessert wird. - Fsync ist eine verbesserte Version von Esync, die auf bestimmten Kernel-Versionen funktioniert - items: - none: Aus - esync: Esync - fsync: Fsync - futex2: Futex2 - - # Wine Virtual Desktop - winevd: - title: Virtual Desktop - settings: - title: Virtual Desktop einstellung + # Enhancements related to the wine + wine: + title: Wine + items: + # HUD + hud: + title: HUD items: - height: Höhe - width: Breite - - # GameMode - gamemode: - title: Benutze GameMode - tooltip: - enabled: GameMode ist ein Program welches die Leistung verbessert - disabled: ⚠️ Sie haben GameMode nicht installiert + none: Aus + dxvk: DXVK + mangohud: MangoHUD - # AMD FSR - fsr: - title: AMD FSR - tooltip: Diese Option aktiviert AMD FidelityFX Super Resolution (FSR), - womit kleine Resolution hochskaliert wird um FPS-verlust zu vermeiden. - - # Unlock FPS - fps_unlocker: - title: Entsperre FPS - tooltip: Diese option entsperrt/entfernt die 60 FPS limiterung - - # Delete logs - purge_logs: - # Game logs (DXVK) - game: - title: DXVK logs löschen - tooltip: When diese option angeschaltet ist löscht - der Launcher automatisch alle DXVK logs - - # Launcher logs - launcher: - title: Launcher logs löschen - tooltip: Launcher logs werden nach diese angegebenen Zeit gelöscht + # Wine synchronization + winesync: + title: Wine Synchronisation + tooltip: Esync ist ein Mechanismus zur Synchronisierung von Multi-Thread-Operationen womit die Leistung Ihres Spiels verbessert wird. + Fsync ist eine verbesserte Version von Esync, die auf bestimmten Kernel-Versionen funktioniert items: - 1d: 1 Tag - 3d: 3 Tage - 5d: 5 Tage - 7d: 1 Woche - 14d: 2 Wochen - never: Niemals + none: Aus + esync: Esync + fsync: Fsync + futex2: Futex2 + + # AMD FSR + fsr: + title: AMD FSR + tooltip: Diese Option aktiviert AMD FidelityFX Super Resolution (FSR), + womit kleine Resolution hochskaliert wird um FPS-verlust zu vermeiden. + + # Wine Virtual Desktop + winevd: + title: Virtual Desktop + settings: + title: Virtual Desktop einstellung + items: + width: Breite + height: Höhe + + # Enhancements related to the game + game: + title: Spiel + items: + # GameMode + gamemode: + title: Benutze GameMode + tooltip: + enabled: GameMode ist ein Program welches die Leistung verbessert + disabled: ⚠️ Sie haben GameMode nicht installiert + + # Borderless Window + borderless_window: + title: Als randloses Fenster starten + tooltip: Entfernt die Fensterränder beim Spielen im Fenstermodus. + Um in einem randlosen Fenster im Vollbildmodus zu spielen, drücken Sie die Tastenkombination alt+enter. + + # Unlock FPS + fps_unlocker: + title: Entsperre FPS + tooltip: Diese option entsperrt/entfernt die 60 FPS limiterung + + # Use separate terminal window to run the game + use_terminal: + title: Terminal aktivieren + tooltip: Wenn diese Option aktiviert ist, führt der Launcher den Wine Befehl in einem separaten Terminalfenster aus + + # Enhancements related to the launcher + launcher: + title: Launcher + items: + # Delete logs + purge_logs: + # Game logs (DXVK) + game: + title: DXVK logs löschen + tooltip: When diese option angeschaltet ist löscht + der Launcher automatisch alle DXVK logs + + # Launcher logs + launcher: + title: Launcher logs löschen + tooltip: Launcher logs werden nach diese angegebenen Zeit gelöscht + items: + 1d: 1 Tag + 3d: 3 Tage + 5d: 5 Tage + 7d: 1 Woche + 14d: 2 Wochen + never: Niemals # Runners runners: diff --git a/public/locales/en-us.yaml b/public/locales/en-us.yaml index 11f05f6..97e05bc 100644 --- a/public/locales/en-us.yaml +++ b/public/locales/en-us.yaml @@ -82,7 +82,7 @@ settings: it-it: Italiano hu-hu: Magyar id-id: Bahasa Indonesia - nb-no: Norwegian + nb-no: Norsk uwu: Engwish # Game voice pack language @@ -124,79 +124,95 @@ settings: # Enhancements enhancements: title: Enhancements - items: - # Borderless Window - borderless_window: - title: Allow borderless window - tooltip: Removes the window borders when playing in windowed mode. - To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. - - # HUD - hud: - title: HUD - items: - none: None - dxvk: DXVK - mangohud: MangoHUD - - # Wine synchronization - winesync: - title: Wine synchronization - tooltip: ESync is a mechanism of synchronizing multi-thread operations. It can improve your game performance. - FSync is an improved version of ESync that works on specific kernel versions - items: - none: None - esync: ESync - fsync: FSync - futex2: Futex2 - - # Wine Virtual Desktop - winevd: - title: Virtual Desktop - settings: - title: Virtual Desktop settings + # Enhancements related to the wine + wine: + title: Wine + items: + # HUD + hud: + title: HUD items: - height: Height - width: Width - - # GameMode - gamemode: - title: Use GameMode - tooltip: - enabled: It is a software that can improve the game performance - disabled: ⚠️ You don't have gamemode package installed + none: None + dxvk: DXVK + mangohud: MangoHUD - # AMD FSR - fsr: - title: Enable AMD FSR - tooltip: This option enables AMD FidelityFX Super Resolution (FSR) - which will scale your game resolution without losing FPS - - # Unlock FPS - fps_unlocker: - title: Unlock FPS - tooltip: This option will unlock maximum of the 60 fps limitation - - # Delete logs - purge_logs: - # Game logs (DXVK) - game: - title: Delete DXVK logs - tooltip: With this option enabled your launcher will automatically - delete DXVK log files - - # Launcher logs - launcher: - title: Delete launcher logs - tooltip: Amount of time after which launcher will delete its old log files + # Wine synchronization + winesync: + title: Wine synchronization + tooltip: ESync is a mechanism of synchronizing multi-thread operations. It can improve your game performance. + FSync is an improved version of ESync that works on specific kernel versions items: - 1d: 1 day - 3d: 3 days - 5d: 5 days - 7d: 1 week - 14d: 2 weeks - never: Never + none: None + esync: ESync + fsync: FSync + futex2: Futex2 + + # AMD FSR + fsr: + title: Enable AMD FSR + tooltip: This option enables AMD FidelityFX Super Resolution (FSR) + which will scale your game resolution without losing FPS + + # Wine Virtual Desktop + winevd: + title: Virtual Desktop + settings: + title: Virtual Desktop settings + items: + width: Width + height: Height + + # Enhancements related to the game + game: + title: Game + items: + # GameMode + gamemode: + title: Use GameMode + tooltip: + enabled: It is a software that can improve the game performance + disabled: ⚠️ You don't have gamemode package installed + + # Borderless Window + borderless_window: + title: Allow borderless window + tooltip: Removes the window borders when playing in windowed mode. + To play in a fullscreen borderless window, press alt+enter when playing on fullscreen + + # Unlock FPS + fps_unlocker: + title: Unlock FPS + tooltip: This option will unlock maximum of the 60 fps limitation + + # Use separate terminal window to run the game + use_terminal: + title: Use terminal + tooltip: With this option enabled launcher will run the wine command in a separate terminal window + + # Enhancements related to the launcher + launcher: + title: Launcher + items: + # Delete logs + purge_logs: + # Game logs (DXVK) + game: + title: Delete DXVK logs + tooltip: With this option enabled your launcher will automatically + delete DXVK log files + + # Launcher logs + launcher: + title: Delete launcher logs + tooltip: Amount of time after which launcher will delete its old log files + items: + 1d: 1 day + 3d: 3 days + 5d: 5 days + 7d: 1 week + 14d: 2 weeks + never: Never # Runners runners: diff --git a/public/locales/es-es.yaml b/public/locales/es-es.yaml index 9adb862..92eb860 100644 --- a/public/locales/es-es.yaml +++ b/public/locales/es-es.yaml @@ -74,16 +74,16 @@ settings: launcher: title: Launcher items: - en-us: Inglés (EEUU) - ru-ru: Ruso + en-us: English (US) + ru-ru: Русский es-es: Español - de-de: Alemán - fr-fr: Francés + de-de: Deutsch + fr-fr: Français it-it: Italiano hu-hu: Magyar id-id: Bahasa Indonesia - nb-no: Norwegian - uwu: Inglés pero uwu + nb-no: Norsk + uwu: Engwish # Idioma del paquete de voz voice: @@ -124,78 +124,94 @@ settings: # Mejoras enhancements: title: Mejoras - items: - # Ventana sin bordes - borderless_window: - title: Permitir ventana sin bordes - tooltip: Eliminar los bordes cuando se juega en modo ventana - Para jugar a pantalla completa sin bordes, debes presionar alt+enter cuando estés en pantalla completa - - # HUD - hud: - title: HUD - items: - none: Ninguno - dxvk: DXVK - mangohud: MangoHUD - - # Sincronización de Wine - winesync: - title: Sincronización de Wine - tooltip: ESync es un mecanismo para sincronizar operaciones hechas en paralelo. Podría mejorar el rendimiento del juego. - FSync es una versión mejorada de ESync que sólo funciona en versiones especificas del kernel. - items: - none: Ninguna - esync: ESync - fsync: FSync - futex2: Futex2 - - # Escritorio Virtual de Wine - winevd: - title: Escritorio Virtual - settings: - title: Opciones del Escritorio Virtual + # Enhancements related to the wine + wine: + title: Wine + items: + # HUD + hud: + title: HUD items: - height: Alto - width: Ancho - - # GameMode - gamemode: - title: Usar GameMode - tooltip: - enabled: GameMode es un software que pemite mejorar el rendimiento de algunos juegos. - disabled: ⚠️ No tienes instalado el paquete de gamemode. + none: Ninguno + dxvk: DXVK + mangohud: MangoHUD - # AMD FSR - fsr: - title: Activar AMD FSR - tooltip: Esta opción activa la AMD FidelityFX Super Resolution (FSR) - que aumentará la resolución de tu juego sin pérdida de FPS. - - # Desbloquear FPS - fps_unlocker: - title: Desbloquear FPS - tooltip: Esta opción anulará el límite máximo de 60 fps. - - # Borrar logs - purge_logs: - # Logs del juego (DXVK) - game: - title: Borrar logs de DXVK - tooltip: Con esta opción tu launcher eliminará automáticamente los archivos de registro de DXVK. - - # Logs del Launcher - launcher: - title: Borrar logs del launcher - tooltip: Tiempo que deberá transcurrir hasta que el launcher elimine un log. + # Sincronización de Wine + winesync: + title: Sincronización de Wine + tooltip: ESync es un mecanismo para sincronizar operaciones hechas en paralelo. Podría mejorar el rendimiento del juego. + FSync es una versión mejorada de ESync que sólo funciona en versiones especificas del kernel. items: - 1d: 1 día - 3d: 3 días - 5d: 5 días - 7d: 1 semana - 14d: 2 semanas - never: Nunca + none: Ninguna + esync: ESync + fsync: FSync + futex2: Futex2 + + # AMD FSR + fsr: + title: Activar AMD FSR + tooltip: Esta opción activa la AMD FidelityFX Super Resolution (FSR) + que aumentará la resolución de tu juego sin pérdida de FPS. + + # Escritorio Virtual de Wine + winevd: + title: Escritorio Virtual + settings: + title: Opciones del Escritorio Virtual + items: + width: Ancho + height: Alto + + # Enhancements related to the game + game: + title: Juego + items: + # GameMode + gamemode: + title: Usar GameMode + tooltip: + enabled: GameMode es un software que pemite mejorar el rendimiento de algunos juegos. + disabled: ⚠️ No tienes instalado el paquete de gamemode. + + # Ventana sin bordes + borderless_window: + title: Permitir ventana sin bordes + tooltip: Eliminar los bordes cuando se juega en modo ventana + Para jugar a pantalla completa sin bordes, debes presionar alt+enter cuando estés en pantalla completa + + # Desbloquear FPS + fps_unlocker: + title: Desbloquear FPS + tooltip: Esta opción anulará el límite máximo de 60 fps. + + # Correr el juego en una terminal separada + use_terminal: + title: Usar terminal + tooltip: Con esta opción activada, el launcher ejecutará el comando de wine en una nueva terminal separada. + + # Enhancements related to the launcher + launcher: + title: Launcher + items: + # Borrar logs + purge_logs: + # Logs del juego (DXVK) + game: + title: Borrar logs de DXVK + tooltip: Con esta opción tu launcher eliminará automáticamente los archivos de registro de DXVK. + + # Logs del Launcher + launcher: + title: Borrar logs del launcher + tooltip: Tiempo que deberá transcurrir hasta que el launcher elimine un log. + items: + 1d: 1 día + 3d: 3 días + 5d: 5 días + 7d: 1 semana + 14d: 2 semanas + never: Nunca # Runners runners: diff --git a/public/locales/fr-fr.yaml b/public/locales/fr-fr.yaml index 1f4fa65..27845c4 100644 --- a/public/locales/fr-fr.yaml +++ b/public/locales/fr-fr.yaml @@ -83,7 +83,7 @@ settings: it-it: Italiano hu-hu: Magyar id-id: Bahasa Indonesia - nb-no: Norwegian + nb-no: Norsk uwu: Engwish # Game voice pack language @@ -126,80 +126,98 @@ settings: # Enhancements enhancements: title: Améliorations - items: - # Borderless Window - borderless_window: - title: Allow borderless window - tooltip: Removes the window borders when playing in windowed mode. - To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. - - # HUD - hud: - title: Interface - items: - none: None - dxvk: DXVK - mangohud: MangoHUD - - # Wine synchronization - winesync: - title: Synchronisation dans Wine - tooltip: ESync est un système de synchronisation des opérations multi-thread. Cela améliore vos performances en jeux. - FSync est une version améliorée de ESync qui fonctionne seulement avec un Kernel spécifique. - items: - none: Aucune - esync: ESync - fsync: FSync - futex2: Futex2 - - # Wine Virtual Desktop - winevd: - title: Bureau virtuel - settings: - title: Paramètres du Bureau virtuel + # Enhancements related to the wine + wine: + title: Wine + items: + # HUD + hud: + title: Interface items: - height: Hauteur - width: Largeur - - # GameMode - gamemode: - title: Utiliser GameMode - tooltip: - enabled: C'est un logiciel qui permet d'améliorer les performances en jeu - disabled: ⚠️ Vous n'avez pas le paquet "gamemode" d'installer + none: None + dxvk: DXVK + mangohud: MangoHUD - # AMD FSR - fsr: - title: Activer AMD FSR - tooltip: Cette option active "AMD FidelityFX Super Resolution" (FSR) - ce qui permet d'augmenter votre résolution sans perdre des FPS (images par secondes) - - # Unlock FPS - fps_unlocker: - title: Débloquer les IPS (FPS) - tooltip: Cette option permet de débloque le nombre d'image par - secondes (IPS) au-delà de 60 - - # Delete logs - purge_logs: - # Game logs (DXVK) - game: - title: Supprimer automatiquement les logs de DXVK - tooltip: Cette option supprime automatiquement les - fichiers logs de DXVK - - # Launcher logs - launcher: - title: Suppression des fichiers logs - tooltip: Intervalle entre chaque suppression de fichier logs du launcher + # Wine synchronization + winesync: + title: Synchronisation dans Wine + tooltip: ESync est un système de synchronisation des opérations multi-thread. Cela améliore vos performances en jeux. + FSync est une version améliorée de ESync qui fonctionne seulement avec un Kernel spécifique. items: - 1d: Tous les jours - 3d: Tous les 3 jours - 5d: Tous les 5 jours - 7d: Toutes les semaines - 14d: Toutes les 2 semaines - never: Jamais + none: Aucune + esync: ESync + fsync: FSync + futex2: Futex2 + + # AMD FSR + fsr: + title: Activer AMD FSR + tooltip: Cette option active "AMD FidelityFX Super Resolution" (FSR) + ce qui permet d'augmenter votre résolution sans perdre des FPS (images par secondes) + + # Wine Virtual Desktop + winevd: + title: Bureau virtuel + settings: + title: Paramètres du Bureau virtuel + items: + width: Largeur + height: Hauteur + + # Enhancements related to the game + game: + title: Jeu + items: + # GameMode + gamemode: + title: Utiliser GameMode + tooltip: + enabled: C'est un logiciel qui permet d'améliorer les performances en jeu + disabled: ⚠️ Vous n'avez pas le paquet "gamemode" d'installer + + # Borderless Window + borderless_window: + title: Fenêtre sans bordures + tooltip: Enlève les bordures du jeu quand vous jouez en mode fenêtrer. + Pour jouer en mode fenêtrer ou inversement jouer en + mode plein écran, appuyez sur alt+entrer pour alterner entre + les deux modes. + + # Unlock FPS + fps_unlocker: + title: Débloquer les IPS (FPS) + tooltip: Cette option permet de débloque le nombre d'image par + secondes (IPS) au-delà de 60 + + # Use separate terminal window to run the game + use_terminal: + title: Utiliser Terminal + tooltip: Avec cette option activée le Launcher lancera les commandes Wine dans une fenêtre Terminal séparée + + # Enhancements related to the launcher + launcher: + title: Launcher + items: + # Delete logs + purge_logs: + # Game logs (DXVK) + game: + title: Supprimer automatiquement les logs de DXVK + tooltip: Cette option supprime automatiquement les + fichiers logs de DXVK + + # Launcher logs + launcher: + title: Suppression des fichiers logs + tooltip: Intervalle entre chaque suppression de fichier logs du launcher + items: + 1d: Tous les jours + 3d: Tous les 3 jours + 5d: Tous les 5 jours + 7d: Toutes les semaines + 14d: Toutes les 2 semaines + never: Jamais # Runners runners: diff --git a/public/locales/hu-hu.yaml b/public/locales/hu-hu.yaml index 233807d..d385f86 100644 --- a/public/locales/hu-hu.yaml +++ b/public/locales/hu-hu.yaml @@ -82,7 +82,7 @@ settings: it-it: Italiano hu-hu: Magyar id-id: Bahasa Indonesia - nb-no: Norwegian + nb-no: Norsk uwu: Engwish # Game voice pack language @@ -124,79 +124,95 @@ settings: # Enhancements enhancements: title: Fejlesztések - items: - # Borderless Window - borderless_window: - title: Allow borderless window - tooltip: Removes the window borders when playing in windowed mode. - To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. - - # HUD - hud: - title: HUD - items: - none: Nincs - dxvk: DXVK - mangohud: MangoHUD - - # Wine synchronization - winesync: - title: Wine szinkronizáció - tooltip: Az ESync egy többszálú műveleteket szinkronizáló mechanizmus. Javíthatja a játék teljesítményét. - Az FSync az ESync egy továbbfejlesztett változata, amely csak bizonyos kernelverziókon működik - items: - none: Nincs - esync: ESync - fsync: FSync - futex2: Futex2 - - # GameMode - gamemode: - title: GameMode használata - tooltip: - enabled: Egy program amely javíthatja a játék teljesítményét - disabled: ⚠️ Nincs telepítve a gamemode csomag - - # AMD FSR - fsr: - title: AMD FSR használata - tooltip: Ez az opció bekapcsolja az AMD FidelityFX Super Resolution (FSR)-t - amely emeli a játékod felbontását FPS vesztése nélkül - - # Wine Virtual Desktop - winevd: - title: Virtuális Asztal - settings: - title: Virtuális Asztal beállításai + # Enhancements related to the wine + wine: + title: Wine + items: + # HUD + hud: + title: HUD items: - height: Magasság - width: Szélesség + none: Nincs + dxvk: DXVK + mangohud: MangoHUD - # Unlock FPS - fps_unlocker: - title: FPS limit kikapcsolása - tooltip: Ez az opció kikapcsolja a 60 fps-es játéklimitet - - # Delete logs - purge_logs: - # Game logs (DXVK) - game: - title: DXVK logok törlése - tooltip: Ezzel az opcióval a launcher autómatikusan - törölni fogja a DXVK logfájlokat - - # Launcher logs - launcher: - title: Launcher logok törlése - tooltip: Mennyi idő után törölje a launcher a régi logfájlokat + # Wine synchronization + winesync: + title: Wine szinkronizáció + tooltip: Az ESync egy többszálú műveleteket szinkronizáló mechanizmus. Javíthatja a játék teljesítményét. + Az FSync az ESync egy továbbfejlesztett változata, amely csak bizonyos kernelverziókon működik items: - 1d: 1 nap - 3d: 3 nap - 5d: 5 nap - 7d: 1 hét - 14d: 2 hét - never: Soha + none: Nincs + esync: ESync + fsync: FSync + futex2: Futex2 + + # AMD FSR + fsr: + title: AMD FSR használata + tooltip: Ez az opció bekapcsolja az AMD FidelityFX Super Resolution (FSR)-t + amely emeli a játékod felbontását FPS vesztése nélkül + + # Wine Virtual Desktop + winevd: + title: Virtuális Asztal + settings: + title: Virtuális Asztal beállításai + items: + width: Szélesség + height: Magasság + + # Enhancements related to the game + game: + title: Game + items: + # GameMode + gamemode: + title: GameMode használata + tooltip: + enabled: Egy program amely javíthatja a játék teljesítményét + disabled: ⚠️ Nincs telepítve a gamemode csomag + + # Borderless Window + borderless_window: + title: Allow borderless window + tooltip: Removes the window borders when playing in windowed mode. + To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. + + # Unlock FPS + fps_unlocker: + title: FPS limit kikapcsolása + tooltip: Ez az opció kikapcsolja a 60 fps-es játéklimitet + + # Use separate terminal window to run the game + use_terminal: + title: Use terminal + tooltip: With this option enabled launcher will run the wine command in a separate terminal window + + # Enhancements related to the launcher + launcher: + title: Launcher + items: + # Delete logs + purge_logs: + # Game logs (DXVK) + game: + title: DXVK logok törlése + tooltip: Ezzel az opcióval a launcher autómatikusan + törölni fogja a DXVK logfájlokat + + # Launcher logs + launcher: + title: Launcher logok törlése + tooltip: Mennyi idő után törölje a launcher a régi logfájlokat + items: + 1d: 1 nap + 3d: 3 nap + 5d: 5 nap + 7d: 1 hét + 14d: 2 hét + never: Soha # Runners runners: diff --git a/public/locales/id-id.yaml b/public/locales/id-id.yaml index ea2f2fb..4261649 100644 --- a/public/locales/id-id.yaml +++ b/public/locales/id-id.yaml @@ -76,12 +76,13 @@ settings: items: en-us: English (US) ru-ru: Русский + es-es: Español de-de: Deutsch fr-fr: Français it-it: Italiano hu-hu: Magyar id-id: Bahasa Indonesia - nb-no: Norwegian + nb-no: Norsk uwu: Engwish # Game voice pack language @@ -123,79 +124,95 @@ settings: # Enhancements enhancements: title: Peningkatan - items: - # Borderless Window - borderless_window: - title: Allow borderless window - tooltip: Removes the window borders when playing in windowed mode. - To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. - - # HUD - hud: - title: HUD - items: - none: Tidak ada - dxvk: DXVK - mangohud: MangoHUD - - # Wine synchronization - winesync: - title: Wine synchronization - tooltip: ESync is a mechanism of synchronizing multi-thread operations. It can improve your game performance. - FSync is an improved version of ESync that works on specific kernel versions - items: - none: None - esync: ESync - fsync: FSync - futex2: Futex2 - - # Wine Virtual Desktop - winevd: - title: Virtual Desktop - settings: - title: Virtual Desktop settings + # Enhancements related to the wine + wine: + title: Wine + items: + # HUD + hud: + title: HUD items: - height: Height - width: Width - - # GameMode - gamemode: - title: Gunakan GameMode - tooltip: - enabled: Perangkat lunak yang dapat meningkatkan performa game - disabled: ⚠️ Kamu tidak memiliki paket gamemode terpasang + none: Tidak ada + dxvk: DXVK + mangohud: MangoHUD - # AMD FSR - fsr: - title: Aktifkan AMD FSR - tooltip: Opsi ini mengaktifkan AMD FidelityFX Super Resolution (FSR) - yang akan menaikkan resolusi game tanpa mengurangi FPS - - # Unlock FPS - fps_unlocker: - title: Unlock FPS - tooltip: Opsi ini akan melepaskan batasan 60 fps - - # Delete logs - purge_logs: - # Game logs (DXVK) - game: - title: Hapus log DXVK - tooltip: Dengan mengaktifkan opsi ini, peluncur akan menghapus - log DXVK secara otomatis - - # Launcher logs - launcher: - title: Hapus log peluncur - tooltip: Jangka waktu agar peluncur menghapus log file lama secara otomatis + # Wine synchronization + winesync: + title: Wine synchronization + tooltip: ESync is a mechanism of synchronizing multi-thread operations. It can improve your game performance. + FSync is an improved version of ESync that works on specific kernel versions items: - 1d: 1 hari - 3d: 3 hari - 5d: 5 hari - 7d: 1 minggu - 14d: 2 minggu - never: Tidak pernah + none: None + esync: ESync + fsync: FSync + futex2: Futex2 + + # AMD FSR + fsr: + title: Aktifkan AMD FSR + tooltip: Opsi ini mengaktifkan AMD FidelityFX Super Resolution (FSR) + yang akan menaikkan resolusi game tanpa mengurangi FPS + + # Wine Virtual Desktop + winevd: + title: Virtual Desktop + settings: + title: Virtual Desktop settings + items: + width: Width + height: Height + + # Enhancements related to the game + game: + title: Game + items: + # GameMode + gamemode: + title: Gunakan GameMode + tooltip: + enabled: Perangkat lunak yang dapat meningkatkan performa game + disabled: ⚠️ Kamu tidak memiliki paket gamemode terpasang + + # Borderless Window + borderless_window: + title: Allow borderless window + tooltip: Removes the window borders when playing in windowed mode. + To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. + + # Unlock FPS + fps_unlocker: + title: Unlock FPS + tooltip: Opsi ini akan melepaskan batasan 60 fps + + # Use separate terminal window to run the game + use_terminal: + title: Use terminal + tooltip: With this option enabled launcher will run the wine command in a separate terminal window + + # Enhancements related to the launcher + launcher: + title: Launcher + items: + # Delete logs + purge_logs: + # Game logs (DXVK) + game: + title: Hapus log DXVK + tooltip: Dengan mengaktifkan opsi ini, peluncur akan menghapus + log DXVK secara otomatis + + # Launcher logs + launcher: + title: Hapus log peluncur + tooltip: Jangka waktu agar peluncur menghapus log file lama secara otomatis + items: + 1d: 1 hari + 3d: 3 hari + 5d: 5 hari + 7d: 1 minggu + 14d: 2 minggu + never: Tidak pernah # Runners runners: diff --git a/public/locales/it-it.yaml b/public/locales/it-it.yaml index 00c7d9c..db47bb7 100644 --- a/public/locales/it-it.yaml +++ b/public/locales/it-it.yaml @@ -82,7 +82,7 @@ settings: it-it: Italiano hu-hu: Magyar id-id: Bahasa Indonesia - nb-no: Norwegian + nb-no: Norsk uwu: Engwish # Game voice pack language @@ -123,78 +123,94 @@ settings: # Enhancements enhancements: title: Miglioramenti - items: - # Borderless Window - borderless_window: - title: Allow borderless window - tooltip: Removes the window borders when playing in windowed mode. - To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. - - # HUD - hud: - title: Interfaccia - items: - none: None - dxvk: DXVK - mangohud: MangoHUD - - # Wine synchronization - winesync: - title: Sincronizzazione Wine - tooltip: ESync è un meccanismo di sincronizzazione per operazioni multi-thread. Può migliorare le performance di gioco. - FSync è una versione migliorata di ESync che funziona su alcune versioni specifiche del kernel. - items: - none: Nessuno - esync: ESync - fsync: FSync - futex2: Futex2 - - # Wine Virtual Desktop - winevd: - title: Desktop virtuale - settings: - title: Impostazioni del desktop virtuale + # Enhancements related to the wine + wine: + title: Wine + items: + # HUD + hud: + title: Interfaccia items: - height: Altezza - width: Larghezza - - # GameMode - gamemode: - title: Usa GameMode - tooltip: - enabled: È un software che può migliorare le prestazioni in gioco - disabled: ⚠️ Non hai il pacchetto gamemode installato - - # AMD FSR - fsr: - title: Attiva AMD FSR - tooltip: Questa opzione attiva AMD FidelityFX Super Resolution (FSR) - che permetterà di scalare la risoluzione del gioco senza perdere FPS + none: None + dxvk: DXVK + mangohud: MangoHUD - # Unlock FPS - fps_unlocker: - title: Sblocca gli FPS - tooltip: Questa opzione rimuoverà la limitazione di 60 FPS in gioco - - # Delete DXVK logs - purge_logs: - # Game logs (DXVK) - game: - title: Cancella i log DXVK - tooltip: Con questa opzione attiva, il launcher cancellerà automaticamente i file di log DXVK - - # Launcher logs - launcher: - title: Cancella i log del launcher - tooltip: Quantità di tempo dopo cui il launcher eliminerà i vecchi file di log + # Wine synchronization + winesync: + title: Sincronizzazione Wine + tooltip: ESync è un meccanismo di sincronizzazione per operazioni multi-thread. Può migliorare le performance di gioco. + FSync è una versione migliorata di ESync che funziona su alcune versioni specifiche del kernel. items: - 1d: 1 giorno - 3d: 3 giorni - 5d: 5 giorni - 7d: 1 settimana - 14d: 2 settimane - never: Mai + none: Nessuno + esync: ESync + fsync: FSync + futex2: Futex2 + + # AMD FSR + fsr: + title: Attiva AMD FSR + tooltip: Questa opzione attiva AMD FidelityFX Super Resolution (FSR) + che permetterà di scalare la risoluzione del gioco senza perdere FPS + + # Wine Virtual Desktop + winevd: + title: Desktop virtuale + settings: + title: Impostazioni del desktop virtuale + items: + width: Larghezza + height: Altezza + + # Enhancements related to the game + game: + title: Game + items: + # GameMode + gamemode: + title: Usa GameMode + tooltip: + enabled: È un software che può migliorare le prestazioni in gioco + disabled: ⚠️ Non hai il pacchetto gamemode installato + + # Borderless Window + borderless_window: + title: Allow borderless window + tooltip: Removes the window borders when playing in windowed mode. + To play in a fullscreen borderless window, press alt+enter when playing on fullscreen. + + # Unlock FPS + fps_unlocker: + title: Sblocca gli FPS + tooltip: Questa opzione rimuoverà la limitazione di 60 FPS in gioco + + # Use separate terminal window to run the game + use_terminal: + title: Use terminal + tooltip: With this option enabled launcher will run the wine command in a separate terminal window + + # Enhancements related to the launcher + launcher: + title: Launcher + items: + # Delete DXVK logs + purge_logs: + # Game logs (DXVK) + game: + title: Cancella i log DXVK + tooltip: Con questa opzione attiva, il launcher cancellerà automaticamente i file di log DXVK + + # Launcher logs + launcher: + title: Cancella i log del launcher + tooltip: Quantità di tempo dopo cui il launcher eliminerà i vecchi file di log + items: + 1d: 1 giorno + 3d: 3 giorni + 5d: 5 giorni + 7d: 1 settimana + 14d: 2 settimane + never: Mai # Runners runners: diff --git a/public/locales/nb-no.yaml b/public/locales/nb-no.yaml index ea89c28..764bc41 100644 --- a/public/locales/nb-no.yaml +++ b/public/locales/nb-no.yaml @@ -124,78 +124,95 @@ settings: # Enhancements enhancements: title: Forbedringer - items: - # Borderless Window - borderless_window: - title: Skru på kantløs vindu - tooltip: Fjerner vindu kanter når du ikke spiller i fullskjerm modus. - For å spille i kantløs vindu modus, trykk alt+enter når du spiller i fullskjerm modus. - - # HUD - hud: - title: HUD - items: - none: None - dxvk: DXVK - mangohud: MangoHUD - - # Wine synchronization - winesync: - title: Wine synkronisering - tooltip: Esync er en mekanisme av synkroniserende multi-tråd operasjoner. Det kan forbedre din spill ytelse. - FSync er en forbedret versjon av ESync som fungerer på spesifike kjerne versjoner - items: - none: None - esync: ESync - fsync: FSync - futex2: Futex2 - - # Wine Virtual Desktop - winevd: - title: Virtuell Skrivebord - settings: - title: Virtuell Skrivebord Instillinger + # Enhancements related to the wine + wine: + title: Wine + items: + # HUD + hud: + title: HUD items: - height: Høyde - width: Bredde + none: None + dxvk: DXVK + mangohud: MangoHUD - # GameMode - gamemode: - title: Bruk GameMode - tooltip: - enabled: Det er programvare som kan forbedre spill ytelsen - disabled: ⚠️ Du har ikke GameMode installert - # AMD FSR - fsr: - title: Skru på AMD FSR - tooltip: Denne instillingen skrur på AMD FidelityFX Super Resolution (FSR) - som vil skalere oppløsningen uten å miste FPS - - # Unlock FPS - fps_unlocker: - title: Lås opp FPS - tooltip: Denne instillingen låser opp 60 fps begrensningen - - # Delete logs - purge_logs: - # Game logs (DXVK) - game: - title: Slett DXVK loggfiler - tooltip: Med denne instillingen skrudd på your launcher will automatically - delete DXVK log files - - # Launcher logs - launcher: - title: Slett launcher loggfiler - tooltip: Mengde med tid før gamle logg filer blir slettet + # Wine synchronization + winesync: + title: Wine synkronisering + tooltip: Esync er en mekanisme av synkroniserende multi-tråd operasjoner. Det kan forbedre din spill ytelse. + FSync er en forbedret versjon av ESync som fungerer på spesifike kjerne versjoner items: - 1d: 1 dag - 3d: 3 dager - 5d: 5 dager - 7d: 1 uke - 14d: 2 uker - never: Aldri + none: None + esync: ESync + fsync: FSync + futex2: Futex2 + + # AMD FSR + fsr: + title: Skru på AMD FSR + tooltip: Denne instillingen skrur på AMD FidelityFX Super Resolution (FSR) + som vil skalere oppløsningen uten å miste FPS + + # Wine Virtual Desktop + winevd: + title: Virtuell Skrivebord + settings: + title: Virtuell Skrivebord Instillinger + items: + width: Bredde + height: Høyde + + # Enhancements related to the game + game: + title: Game + items: + # GameMode + gamemode: + title: Bruk GameMode + tooltip: + enabled: Det er programvare som kan forbedre spill ytelsen + disabled: ⚠️ Du har ikke GameMode installert + + # Borderless Window + borderless_window: + title: Skru på kantløs vindu + tooltip: Fjerner vindu kanter når du ikke spiller i fullskjerm modus. + For å spille i kantløs vindu modus, trykk alt+enter når du spiller i fullskjerm modus. + + # Unlock FPS + fps_unlocker: + title: Lås opp FPS + tooltip: Denne instillingen låser opp 60 fps begrensningen + + # Use separate terminal window to run the game + use_terminal: + title: Use terminal + tooltip: With this option enabled launcher will run the wine command in a separate terminal window + + # Enhancements related to the launcher + launcher: + title: Launcher + items: + # Delete logs + purge_logs: + # Game logs (DXVK) + game: + title: Slett DXVK loggfiler + tooltip: Med denne instillingen skrudd på your launcher will automatically + delete DXVK log files + + # Launcher logs + launcher: + title: Slett launcher loggfiler + tooltip: Mengde med tid før gamle logg filer blir slettet + items: + 1d: 1 dag + 3d: 3 dager + 5d: 5 dager + 7d: 1 uke + 14d: 2 uker + never: Aldri # Runners runners: diff --git a/public/locales/ru-ru.yaml b/public/locales/ru-ru.yaml index 00835a5..d127ae0 100644 --- a/public/locales/ru-ru.yaml +++ b/public/locales/ru-ru.yaml @@ -82,7 +82,7 @@ settings: it-it: Italiano hu-hu: Magyar id-id: Bahasa Indonesia - nb-no: Norwegian + nb-no: Norsk uwu: Engwish # Язык озвучки в игре @@ -124,78 +124,94 @@ settings: # Улучшения enhancements: title: Улучшения - items: - # Borderless Window - borderless_window: - title: Использовать безрамочные окна - tooltip: Убирает рамки окна во время игры в оконном режиме. - Для игры в полноэкранном режиме без рамок используйте alt+enter - - # HUD - hud: - title: HUD - items: - none: Отключён - dxvk: DXVK - mangohud: MangoHUD - - # Синхронизация Wine - winesync: - title: Синхронизация Wine - tooltip: ESync - это механизм синхронизации многопоточных операций. Он может улучшить производительность игры. - FSync - это улучшенная версия ESync, которая работает на некоторых версиях ядра Linux - items: - none: Отключена - esync: ESync - fsync: FSync - futex2: Futex2 - - # Виртуальный рабочий стол Wine - winevd: - title: Виртуальный рабочий стол - settings: - title: Настройки виртуального рабочего стола + # Enhancements related to the wine + wine: + title: Wine + items: + # HUD + hud: + title: HUD items: - height: Высота - width: Ширина - - # GameMode - gamemode: - title: Использовать GameMode - tooltip: - enabled: Это программа, которая может улучшить производительность игры - disabled: ⚠️ У вас не установлен пакет gamemode + none: Отключён + dxvk: DXVK + mangohud: MangoHUD - # AMD FSR - fsr: - title: Включить AMD FSR - tooltip: Эта опция включает AMD FidelityFX Super Resolution (FSR), - который может увеличить разрешение игры без потери кадров - - # Разблокировать FPS - fps_unlocker: - title: Разблокировать FPS - tooltip: Эта опция позволит разблокировать лимит на отрисовку не более чем 60 кадров в секунду - - # Удалять логи - purge_logs: - # Игры (DXVK) - game: - title: Удалять логи DXVK - tooltip: Если включено, лаунчер будет автоматически удалять логи DXVK - - # Лаунчера - launcher: - title: Удалять логи лаунчера - tooltip: Время, после которого удалять старые логи лаунчера + # Синхронизация Wine + winesync: + title: Синхронизация Wine + tooltip: ESync - это механизм синхронизации многопоточных операций. Он может улучшить производительность игры. + FSync - это улучшенная версия ESync, которая работает на некоторых версиях ядра Linux items: - 1d: 1 день - 3d: 3 дня - 5d: 5 дней - 7d: 1 неделя - 14d: 2 недели - never: Никогда + none: Отключена + esync: ESync + fsync: FSync + futex2: Futex2 + + # AMD FSR + fsr: + title: Включить AMD FSR + tooltip: Эта опция включает AMD FidelityFX Super Resolution (FSR), + который может увеличить разрешение игры без потери кадров + + # Виртуальный рабочий стол Wine + winevd: + title: Виртуальный рабочий стол + settings: + title: Настройки виртуального рабочего стола + items: + width: Ширина + height: Высота + + # Enhancements related to the game + game: + title: Игра + items: + # GameMode + gamemode: + title: Использовать GameMode + tooltip: + enabled: Это программа, которая может улучшить производительность игры + disabled: ⚠️ У вас не установлен пакет gamemode + + # Окно без рамок + borderless_window: + title: Использовать безрамочные окна + tooltip: Убирает рамки во время игры в оконном режиме. + Для игры в полноэкранном режиме без рамок используйте alt+enter + + # Разблокировать FPS + fps_unlocker: + title: Разблокировать FPS + tooltip: Эта опция позволит разблокировать лимит на отрисовку не более чем 60 кадров в секунду + + # Использовать отдельное окно терминала для запуска игры + use_terminal: + title: Использовать терминал + tooltip: С этой опцией лаунчер будет запускать команду wine в отдельном окне терминала + + # Enhancements related to the launcher + launcher: + title: Лаунчер + items: + # Удалять логи + purge_logs: + # Игры (DXVK) + game: + title: Удалять логи DXVK + tooltip: Если включено, лаунчер будет автоматически удалять логи DXVK + + # Лаунчера + launcher: + title: Удалять логи лаунчера + tooltip: Время, после которого удалять старые логи лаунчера + items: + 1d: 1 день + 3d: 3 дня + 5d: 5 дней + 7d: 1 неделя + 14d: 2 недели + never: Никогда # Версии Wine runners: diff --git a/public/locales/uwu.yaml b/public/locales/uwu.yaml index 2f7cc14..40a27da 100644 --- a/public/locales/uwu.yaml +++ b/public/locales/uwu.yaml @@ -82,7 +82,7 @@ settings: it-it: Italiano hu-hu: Magyar id-id: Bahasa Indonesia - nb-no: Norwegian + nb-no: Norsk uwu: Engwish # Game voice pack language @@ -124,78 +124,94 @@ settings: # Enhancements enhancements: title: enhancements - items: - # Borderless Window - borderless_window: - title: allow bowdewless window - tooltip: wemoves the window bowders when playing in windowed mode. - to play in a f-fullscween bowdewless window, press alt+entew when playing on fullscween ପ(๑•ᴗ•๑)ଓ. - - # HUD - hud: - title: h-hud - items: - none: n-none - dxvk: DXVK - mangohud: MangoHUD - - # Wine synchronization - winesync: - title: wine synchwonization - tooltip: Esync is a mechanism of synchwonizing muwti-thwead opewations. it can impwove youw game p-pewfowmance. - Fsync is an impwoved vewsion of esync that wowks on specific k-kewnew vewsions - items: - none: none - esync: Esync - fsync: Fsync - futex2: Futex2 - - # Wine Virtual Desktop - winevd: - title: viwtuaw desktop - settings: - title: viwtuaw desktop settings + # Enhancements related to the wine + wine: + title: wine + items: + # HUD + hud: + title: h-hud items: - height: height - width: width - - # GameMode - gamemode: - title: use G-GameMode - tooltip: - enabled: it i-is a software t-that can impwove the game pewfowmance - disabled: ⚠️ you don't h-have g-gamemode package instawwed + none: n-none + dxvk: DXVK + mangohud: MangoHUD - # AMD FSR - fsr: - title: enable amd fsw - tooltip: this option enables a-amd fidewityfx s-super wesowution (fsw) which will scale youw game wesowution without wosing fps - - # Unlock FPS - fps_unlocker: - title: unwock FPS - tooltip: this option w-will unwock 60 f-fps w-wimitation o-of the game - - # Delete logs - purge_logs: - # Game logs (DXVK) - game: - title: dewete DXVK wogs - tooltip: with this option enabwed youw waunchew will a-automaticawwy - dewete dxvk wog f-files - - # Launcher logs - launcher: - title: dewete w-waunchew wogs - tooltip: amount of time after which waunchew will dewete i-it's owd wog files + # Wine synchronization + winesync: + title: wine synchwonization + tooltip: Esync is a mechanism of synchwonizing muwti-thwead opewations. it can impwove youw game p-pewfowmance. + Fsync is an impwoved vewsion of esync that wowks on specific k-kewnew vewsions items: - 1d: 1 day - 3d: 3 days - 5d: 5 days - 7d: 1 week - 14d: 2 weeks - never: Never + none: none + esync: Esync + fsync: Fsync + futex2: Futex2 + + # AMD FSR + fsr: + title: enable amd fsw + tooltip: this option enables a-amd fidewityfx s-super wesowution (fsw) which will scale youw game wesowution without wosing fps + + # Wine Virtual Desktop + winevd: + title: viwtuaw desktop + settings: + title: viwtuaw desktop settings + items: + width: width + height: height + + # Enhancements related to the game + game: + title: game + items: + # GameMode + gamemode: + title: use G-GameMode + tooltip: + enabled: it i-is a software t-that can impwove the game pewfowmance + disabled: ⚠️ you don't h-have g-gamemode package instawwed + + # Borderless Window + borderless_window: + title: allow bowdewless window + tooltip: wemoves the window bowders when playing in windowed mode. + to play in a f-fullscween bowdewless window, press alt+entew when playing on fullscween ପ(๑•ᴗ•๑)ଓ. + + # Unlock FPS + fps_unlocker: + title: unwock FPS + tooltip: this option w-will unwock 60 f-fps w-wimitation o-of the game + + # Use separate terminal window to run the game + use_terminal: + title: use tewminaw + tooltip: with this option enabwed waunchew will wun the w-wine command in a sepawate t-tewminaw window + + # Enhancements related to the launcher + launcher: + title: waunchew + items: + # Delete logs + purge_logs: + # Game logs (DXVK) + game: + title: dewete DXVK wogs + tooltip: with this option enabwed youw waunchew will a-automaticawwy + dewete dxvk wog f-files + + # Launcher logs + launcher: + title: dewete w-waunchew wogs + tooltip: amount of time after which waunchew will dewete i-it's owd wog files + items: + 1d: 1 day + 3d: 3 days + 5d: 5 days + 7d: 1 week + 14d: 2 weeks + never: Never # Runners runners: diff --git a/src/defaultSettings.ts b/src/defaultSettings.ts index 71ddc6c..9e33597 100644 --- a/src/defaultSettings.ts +++ b/src/defaultSettings.ts @@ -66,16 +66,6 @@ export default new Promise(async (resolve) => { * @default "system" */ theme: 'system', - - /** - * Allow Borderless Window - * - * Whether the game launches with the parameters "-screen-fullscreen 0 -popupwindow" - * This allows the game to be played in a borderless window by selecting fullscreen and pressing alt+enter - * - * @default false - */ - borderless_window: false, /** * HUD @@ -185,6 +175,16 @@ export default new Promise(async (resolve) => { */ gamemode: false, + /** + * Allow Borderless Window + * + * Whether the game launches with the parameters "-screen-fullscreen 0 -popupwindow" + * This allows the game to be played in a borderless window by selecting fullscreen and pressing alt+enter + * + * @default false + */ + borderless_window: false, + /** * If the launcher should unlock FPS * @@ -192,6 +192,17 @@ export default new Promise(async (resolve) => { */ fps_unlocker: false, + /** + * Use separate terminal window to run the wine command + * + * It'll try to use some of the supported default terminal applications. Otherwise the option will not have an effect + * + * More details in the `Launch.ts` script + * + * @default false + */ + use_terminal: false, + /** * If the launcher should automatically delete log files */ @@ -215,7 +226,7 @@ export default new Promise(async (resolve) => { }); /** - * 2.1.0-beta1 -> 2.1.0-beta2 + * 2.1.0-beta1 -> 2.1.1 */ const winesync = await Configs.get('winesync'); const fsr = await Configs.get('fsr'); diff --git a/src/settings.svelte b/src/settings.svelte index 49c0802..91d3c07 100644 --- a/src/settings.svelte +++ b/src/settings.svelte @@ -302,60 +302,64 @@

{$_('settings.enhancements.title')}

+

{$_('settings.enhancements.wine.title')}

+ + + + winevdSettings['enabled'] = value} + /> + +

{$_('settings.enhancements.game.title')}

+ - - winevdSettings['enabled'] = value} - /> - - { @@ -369,22 +373,30 @@ /> + +

{$_('settings.enhancements.launcher.title')}

+ +
diff --git a/src/ts/launcher/states/Launch.ts b/src/ts/launcher/states/Launch.ts index 15e6c8c..e1dd1ae 100644 --- a/src/ts/launcher/states/Launch.ts +++ b/src/ts/launcher/states/Launch.ts @@ -157,6 +157,26 @@ export default (launcher: Launcher): Promise => { if (await Configs.get('gamemode') && await Package.exists('gamemoderun')) command = `gamemoderun ${command}`; + /** + * Use terminal + * + * bash -c " && bash" is required to keep terminal open + */ + if (await Configs.get('use_terminal')) + { + // Gnome + if (await Package.exists('gnome-terminal')) + command = `gnome-terminal -- bash -c "${path.addSlashes(command)} && bash"`; + + // KDE Plasma + else if (await Package.exists('konsole')) + command = `konsole --hold -e "${path.addSlashes(`bash -c "${path.addSlashes(command)} && bash"`)}"`; + + // XFCE + else if (await Package.exists('xfce4-terminal')) + command = `xfce4-terminal --hold -e "${path.addSlashes(`bash -c "${path.addSlashes(command)} && bash"`)}"`; + } + /** * Starting the game */ @@ -171,81 +191,83 @@ export default (launcher: Launcher): Promise => { cwd: await constants.paths.gameDir }); + // Stop monitoring of the process + process.runningInterval = null; + process.outputInterval = null; + // Game was started by the launcher.bat file // so we just need to wait until AnimeGame.e process // will be closed - process.finish(() => { - const processName = `${constants.placeholders.uppercase.first + constants.placeholders.uppercase.second}.e`; + const processName = `${constants.placeholders.uppercase.first + constants.placeholders.uppercase.second}.e`; - let closeGameCounter = 0; + let closeGameCounter = 0; - const waiter = async () => { - const processes: string = (await Neutralino.os.execCommand('ps -A')).stdOut; + const waiter = async () => { + const processes: string = (await Neutralino.os.execCommand('ps -A')).stdOut; - // Game is still running - if (processes.includes(processName)) - { - const playtime = Math.round((Date.now() - startTime) / 1000); + // Game is still running + if (processes.includes(processName)) + { + const playtime = Math.round((Date.now() - startTime) / 1000); - let hours: string|number = Math.floor(playtime / 3600); - let minutes: string|number = Math.floor((playtime - hours * 3600) / 60); - let seconds: string|number = playtime - hours * 3600 - minutes * 60; + let hours: string|number = Math.floor(playtime / 3600); + let minutes: string|number = Math.floor((playtime - hours * 3600) / 60); + let seconds: string|number = playtime - hours * 3600 - minutes * 60; - if (hours < 10) - hours = `0${hours}`; + if (hours < 10) + hours = `0${hours}`; - if (minutes < 10) - minutes = `0${minutes}`; + if (minutes < 10) + minutes = `0${minutes}`; - if (seconds < 10) - seconds = `0${seconds}`; + if (seconds < 10) + seconds = `0${seconds}`; - // FIXME: tray doesn't work in AppImage - launcher.tray.update([ - { text: `Playing for ${hours}:${minutes}:${seconds}`, disabled: true }, - { - text: `Close game${closeGameCounter > 0 ? ` (${closeGameCounter})` : ''}`, + // FIXME: tray doesn't work in AppImage + launcher.tray.update([ + { text: `Playing for ${hours}:${minutes}:${seconds}`, disabled: true }, + { + text: `Close game${closeGameCounter > 0 ? ` (${closeGameCounter})` : ''}`, - click: () => Neutralino.os.execCommand(`kill ${++closeGameCounter < 3 ? '-15' : '-9'} $(pidof ${processName})`) - } - ]); + click: () => Neutralino.os.execCommand(`kill ${++closeGameCounter < 3 ? '-15' : '-9'} $(pidof ${processName})`) + } + ]); - setTimeout(waiter, 3000); - } + setTimeout(waiter, 3000); + } - // Game was closed - else - { - const stopTime = Date.now(); + // Game was closed + else + { + const stopTime = Date.now(); - Windows.current.show(); - Windows.current.center(1280, 700); + Windows.current.show(); + Windows.current.center(1280, 700); - launcher.updateDiscordRPC('in-launcher'); - launcher.tray.hide(); + launcher.updateDiscordRPC('in-launcher'); + launcher.tray.hide(); - // Purge game logs - Configs.get('purge_logs.game').then(async (purge_logs) => { - if (purge_logs) - { - const gameDir = path.addSlashes(await constants.paths.gameDir); + // Purge game logs + Configs.get('purge_logs.game').then(async (purge_logs) => { + if (purge_logs) + { + const gameDir = path.addSlashes(await constants.paths.gameDir); - // Delete .log files (e.g. "ZFGameBrowser_xxxx.log") - Neutralino.os.execCommand(`find "${gameDir}" -maxdepth 1 -type f -name "*.log" -delete`); + // Delete .log files (e.g. "ZFGameBrowser_xxxx.log") + Neutralino.os.execCommand(`find "${gameDir}" -maxdepth 1 -type f -name "*.log" -delete`); - // Delete .dmp files (e.g. "DumpFile-zfbrowser-xxxxxx.dmp") - Neutralino.os.execCommand(`find "${gameDir}" -maxdepth 1 -type f -name "*.dmp" -delete`); - } - }); + // Delete .dmp files (e.g. "DumpFile-zfbrowser-xxxxxx.dmp") + Neutralino.os.execCommand(`find "${gameDir}" -maxdepth 1 -type f -name "*.dmp" -delete`); + } + }); - // TODO + // TODO - resolve(); - } - }; + resolve(); + } + }; - setTimeout(waiter, 5000); - }); + setTimeout(waiter, 5000); } }) .catch(() => {