diff --git a/assets/locales/de/general.ftl b/assets/locales/de/general.ftl index c5f5d76..0954d6e 100644 --- a/assets/locales/de/general.ftl +++ b/assets/locales/de/general.ftl @@ -52,6 +52,11 @@ patch-preparation-tooltip = Patch ist in Entwicklung patch-testing-tooltip = Test-Patch ist verfügbar patch-not-applied-tooltip = Patch ist nicht angewendet +apply-main-patch = Apply main patch +apply-main-patch-description = + Experimental. Disabling this allows you to run the game without applying the patch. + This may not work, or require manual files modifications. Use if you know what you're doing + apply-xlua-patch = Zusätzlichen Patch anwenden ask-superuser-permissions = Superuser-Berechtigungen anfordern diff --git a/assets/locales/en/general.ftl b/assets/locales/en/general.ftl index fce9393..64a083c 100644 --- a/assets/locales/en/general.ftl +++ b/assets/locales/en/general.ftl @@ -52,6 +52,11 @@ patch-preparation-tooltip = Patch is in development patch-testing-tooltip = Test patch is available patch-not-applied-tooltip = Patch is not applied +apply-main-patch = Apply main patch +apply-main-patch-description = + Experimental. Disabling this allows you to run the game without applying the patch. + This may not work, or require manual files modifications. Use if you know what you're doing + apply-xlua-patch = Apply xlua patch ask-superuser-permissions = Ask superuser permissions diff --git a/assets/locales/es/general.ftl b/assets/locales/es/general.ftl index 34500c4..9a99265 100644 --- a/assets/locales/es/general.ftl +++ b/assets/locales/es/general.ftl @@ -52,6 +52,11 @@ patch-preparation-tooltip = El parche está en desarrollo patch-testing-tooltip = Está disponible un parche de prueba patch-not-applied-tooltip = El parche no está aplicado +apply-main-patch = Apply main patch +apply-main-patch-description = + Experimental. Disabling this allows you to run the game without applying the patch. + This may not work, or require manual files modifications. Use if you know what you're doing + apply-xlua-patch = Aplicar parche Xlua ask-superuser-permissions = Pedir permisos de superusuario diff --git a/assets/locales/fr/general.ftl b/assets/locales/fr/general.ftl index 712e606..88f2111 100644 --- a/assets/locales/fr/general.ftl +++ b/assets/locales/fr/general.ftl @@ -52,6 +52,11 @@ patch-preparation-tooltip = Le patch est en développement patch-testing-tooltip = Patch de test disponible patch-not-applied-tooltip = Patch is not applied +apply-main-patch = Apply main patch +apply-main-patch-description = + Experimental. Disabling this allows you to run the game without applying the patch. + This may not work, or require manual files modifications. Use if you know what you're doing + apply-xlua-patch = Apply xlua patch ask-superuser-permissions = Ask superuser permissions diff --git a/assets/locales/id/general.ftl b/assets/locales/id/general.ftl index e040942..b0e54ce 100644 --- a/assets/locales/id/general.ftl +++ b/assets/locales/id/general.ftl @@ -52,6 +52,11 @@ patch-preparation-tooltip = Patch masih dalam pengembangan patch-testing-tooltip = Patch tes tersedia patch-not-applied-tooltip = Patch tidak diterapkan +apply-main-patch = Apply main patch +apply-main-patch-description = + Experimental. Disabling this allows you to run the game without applying the patch. + This may not work, or require manual files modifications. Use if you know what you're doing + apply-xlua-patch = Terapkan patch xlua ask-superuser-permissions = Minta izin dari admin diff --git a/assets/locales/it/general.ftl b/assets/locales/it/general.ftl index d671350..5449a86 100644 --- a/assets/locales/it/general.ftl +++ b/assets/locales/it/general.ftl @@ -52,6 +52,11 @@ patch-preparation-tooltip = La patch è in sviluppo patch-testing-tooltip = La patch di test è disponibile patch-not-applied-tooltip = La patch non è applicata +apply-main-patch = Apply main patch +apply-main-patch-description = + Experimental. Disabling this allows you to run the game without applying the patch. + This may not work, or require manual files modifications. Use if you know what you're doing + apply-xlua-patch = Applica la patch xlua ask-superuser-permissions = Chiedi permessi di amministratore diff --git a/assets/locales/ru/general.ftl b/assets/locales/ru/general.ftl index 381dede..fe2ee04 100644 --- a/assets/locales/ru/general.ftl +++ b/assets/locales/ru/general.ftl @@ -52,7 +52,12 @@ patch-preparation-tooltip = Патч в разработке patch-testing-tooltip = Доступна тестовая версия патча patch-not-applied-tooltip = Патч не применен -apply-xlua-patch = Применить патч xlua +apply-main-patch = Применять основной патч +apply-main-patch-description = + Экспериментально. Отключение опции позволяет запускать игру без применения патча. + Это может не работать или требовать ручного изменения файлов. Используйте если знаете что делаете + +apply-xlua-patch = Применять патч xlua ask-superuser-permissions = Запрашивать права суперпользователя ask-superuser-permissions-description = Лаунчер будет использовать их чтобы автоматически обновлять ваш hosts файл. Это не требуется при использовании flatpak diff --git a/assets/locales/tr/general.ftl b/assets/locales/tr/general.ftl index 8ede4b4..8aa9634 100644 --- a/assets/locales/tr/general.ftl +++ b/assets/locales/tr/general.ftl @@ -52,6 +52,16 @@ patch-preparation-tooltip = Yama hala geliştiriliyor patch-testing-tooltip = Test yaması mevcut patch-not-applied-tooltip = Yama uygulanmamış +apply-main-patch = Apply main patch +apply-main-patch-description = + Experimental. Disabling this allows you to run the game without applying the patch. + This may not work, or require manual files modifications. Use if you know what you're doing + +apply-main-patch = Apply main patch +apply-main-patch-description = + Experimental. Disabling this allows you to run the game without applying the patch. + This may not work, or require manual files modifications. Use if you know what you're doing + apply-xlua-patch = Xlua yamasını uygula ask-superuser-permissions = Yönetici izinlerini sor diff --git a/assets/locales/zh-cn/general.ftl b/assets/locales/zh-cn/general.ftl index c2f7c48..d18f52b 100644 --- a/assets/locales/zh-cn/general.ftl +++ b/assets/locales/zh-cn/general.ftl @@ -52,6 +52,11 @@ patch-preparation-tooltip = 补丁还在开发中 patch-testing-tooltip = 有测试版补丁可用 patch-not-applied-tooltip = 补丁未应用 +apply-main-patch = Apply main patch +apply-main-patch-description = + Experimental. Disabling this allows you to run the game without applying the patch. + This may not work, or require manual files modifications. Use if you know what you're doing + apply-xlua-patch = 应用 xLua 补丁 ask-superuser-permissions = 请求超级用户权限 diff --git a/src/ui/preferences/general/mod.rs b/src/ui/preferences/general/mod.rs index ce9f72d..b7010a7 100644 --- a/src/ui/preferences/general/mod.rs +++ b/src/ui/preferences/general/mod.rs @@ -578,6 +578,30 @@ impl SimpleAsyncComponent for GeneralApp { }, add = &adw::PreferencesGroup { + adw::ActionRow { + set_title: &tr("apply-main-patch"), + set_subtitle: &tr("apply-main-patch-description"), + + add_suffix = >k::Switch { + set_valign: gtk::Align::Center, + + set_state: CONFIG.patch.apply_main, + + connect_state_notify[sender] => move |switch| { + if is_ready() { + #[allow(unused_must_use)] + if let Ok(mut config) = Config::get() { + config.patch.apply_main = switch.state(); + + Config::update(config); + + sender.output(PreferencesAppMsg::UpdateLauncherState); + } + } + } + } + }, + adw::ActionRow { set_title: &tr("apply-xlua-patch"),