mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-07-05 05:41:43 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
cf1d11185b | |||
21f119e4eb | |||
ebb7920d82 |
@ -1061,6 +1061,28 @@ const Translations = {
|
|||||||
"vi-VN": "Nhanh",
|
"vi-VN": "Nhanh",
|
||||||
"zh-CN": "快速",
|
"zh-CN": "快速",
|
||||||
},
|
},
|
||||||
|
"fortnite-allow-stw-mode": {
|
||||||
|
"de-DE": "Spielen im \"STW\"-Modus auf Mobilgeräten erlauben",
|
||||||
|
"en-US": "Allow playing STW mode on mobile",
|
||||||
|
"es-ES": "Permitir jugar al modo STW en el móvil",
|
||||||
|
"ja-JP": "モバイル版での「世界を救え」を許可する",
|
||||||
|
"pl-PL": "Zezwól na granie w tryb STW na urządzeniu mobilnym",
|
||||||
|
"pt-BR": "Permitir a reprodução do modo STW no celular",
|
||||||
|
"tr-TR": "Mobil cihazda Fortnite: Dünyayı Kurtar modunu etkinleştir",
|
||||||
|
"uk-UA": "Дозволити відтворення режиму STW на мобільному пристрої",
|
||||||
|
"vi-VN": "Cho phép chơi chế độ STW trên điện thoại",
|
||||||
|
},
|
||||||
|
"fortnite-force-console-version": {
|
||||||
|
"de-DE": "Fortnite: Erzwinge Konsolenversion",
|
||||||
|
"en-US": "Fortnite: force console version",
|
||||||
|
"es-ES": "Fortnite: forzar versión de consola",
|
||||||
|
"ja-JP": "Fortnite: 強制コンソールバージョン",
|
||||||
|
"pl-PL": "Fortnite: wymuś wersję konsolową",
|
||||||
|
"pt-BR": "Fortnite: forçar versão para console",
|
||||||
|
"tr-TR": "Fortnite'ın konsol sürümünü aç",
|
||||||
|
"uk-UA": "Fortnite: примусова консольна версія",
|
||||||
|
"vi-VN": "Fortnite: bắt buộc phiên bản console",
|
||||||
|
},
|
||||||
"getting-consoles-list": {
|
"getting-consoles-list": {
|
||||||
"de-DE": "Rufe Liste der Konsolen ab...",
|
"de-DE": "Rufe Liste der Konsolen ab...",
|
||||||
"en-US": "Getting the list of consoles...",
|
"en-US": "Getting the list of consoles...",
|
||||||
@ -2479,7 +2501,9 @@ const Translations = {
|
|||||||
"touch-control-layout": {
|
"touch-control-layout": {
|
||||||
"de-DE": "Touch-Steuerungslayout",
|
"de-DE": "Touch-Steuerungslayout",
|
||||||
"en-US": "Touch control layout",
|
"en-US": "Touch control layout",
|
||||||
|
"es-ES": "Diseño de control táctil",
|
||||||
"ja-JP": "タッチコントロールレイアウト",
|
"ja-JP": "タッチコントロールレイアウト",
|
||||||
|
"pl-PL": "Układ sterowania dotykowego",
|
||||||
"pt-BR": "Layout do controle por toque",
|
"pt-BR": "Layout do controle por toque",
|
||||||
"ru-RU": "Расположение сенсорных кнопок",
|
"ru-RU": "Расположение сенсорных кнопок",
|
||||||
"tr-TR": "Dokunmatik kontrol şeması",
|
"tr-TR": "Dokunmatik kontrol şeması",
|
||||||
@ -6468,6 +6492,8 @@ class Preferences {
|
|||||||
static get REMOTE_PLAY_ENABLED() { return 'xhome_enabled'; }
|
static get REMOTE_PLAY_ENABLED() { return 'xhome_enabled'; }
|
||||||
static get REMOTE_PLAY_RESOLUTION() { return 'xhome_resolution'; }
|
static get REMOTE_PLAY_RESOLUTION() { return 'xhome_resolution'; }
|
||||||
|
|
||||||
|
static get GAME_FORTNITE_FORCE_CONSOLE() { return 'game_fortnite_force_console'; }
|
||||||
|
|
||||||
// Deprecated
|
// Deprecated
|
||||||
static get DEPRECATED_USE_DESKTOP_CODEC() { return 'use_desktop_codec'; }
|
static get DEPRECATED_USE_DESKTOP_CODEC() { return 'use_desktop_codec'; }
|
||||||
|
|
||||||
@ -6710,7 +6736,10 @@ class Preferences {
|
|||||||
'ready': () => {
|
'ready': () => {
|
||||||
const pref = Preferences.SETTINGS[Preferences.MKB_ENABLED];
|
const pref = Preferences.SETTINGS[Preferences.MKB_ENABLED];
|
||||||
const note = __(pref.unsupported ? 'browser-unsupported-feature' : 'mkb-disclaimer');
|
const note = __(pref.unsupported ? 'browser-unsupported-feature' : 'mkb-disclaimer');
|
||||||
Preferences.SETTINGS[Preferences.MKB_ENABLED].note = '⚠️ ' + note;
|
Preferences.SETTINGS[Preferences.MKB_ENABLED].note = CE('a', {
|
||||||
|
href: 'https://github.com/redphx/better-xcloud/issues/206#issuecomment-1920475657',
|
||||||
|
target: '_blank',
|
||||||
|
}, '⚠️ ' + note);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -6902,6 +6931,11 @@ class Preferences {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
[Preferences.GAME_FORTNITE_FORCE_CONSOLE]: {
|
||||||
|
'default': false,
|
||||||
|
'note': __('fortnite-allow-stw-mode'),
|
||||||
|
},
|
||||||
|
|
||||||
// Deprecated
|
// Deprecated
|
||||||
/*
|
/*
|
||||||
[Preferences.DEPRECATED_USE_DESKTOP_CODEC]: {
|
[Preferences.DEPRECATED_USE_DESKTOP_CODEC]: {
|
||||||
@ -7313,6 +7347,18 @@ if (window.BX_VIBRATION_INTENSITY && window.BX_VIBRATION_INTENSITY < 1) {
|
|||||||
funcStr = funcStr.replace(text, 'window.BX_EXPOSED["touch_layout_manager"] = this,' + text);
|
funcStr = funcStr.replace(text, 'window.BX_EXPOSED["touch_layout_manager"] = this,' + text);
|
||||||
return funcStr;
|
return funcStr;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
forceFortniteConsole: function(funcStr) {
|
||||||
|
const text = 'sendTouchInputEnabledMessage(e){';
|
||||||
|
if (!funcStr.includes(text)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
const newCode = `window.location.pathname.includes('/launch/fortnite/') && (e = false);`;
|
||||||
|
|
||||||
|
funcStr = funcStr.replace(text, text + newCode);
|
||||||
|
return funcStr;
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static #PATCH_ORDERS = [
|
static #PATCH_ORDERS = [
|
||||||
@ -7345,6 +7391,8 @@ if (window.BX_VIBRATION_INTENSITY && window.BX_VIBRATION_INTENSITY < 1) {
|
|||||||
ENABLE_NATIVE_MKB_BETA && 'mkbIsMouseAndKeyboardTitle',
|
ENABLE_NATIVE_MKB_BETA && 'mkbIsMouseAndKeyboardTitle',
|
||||||
HAS_TOUCH_SUPPORT && 'patchUpdateInputConfigurationAsync',
|
HAS_TOUCH_SUPPORT && 'patchUpdateInputConfigurationAsync',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
getPref(Preferences.GAME_FORTNITE_FORCE_CONSOLE) && ['forceFortniteConsole'],
|
||||||
];
|
];
|
||||||
|
|
||||||
// Only when playing
|
// Only when playing
|
||||||
@ -9511,6 +9559,7 @@ function injectSettingsButton($parent) {
|
|||||||
[Preferences.AUDIO_ENABLE_VOLUME_CONTROL]: __('enable-volume-control'),
|
[Preferences.AUDIO_ENABLE_VOLUME_CONTROL]: __('enable-volume-control'),
|
||||||
[Preferences.AUDIO_MIC_ON_PLAYING]: __('enable-mic-on-startup'),
|
[Preferences.AUDIO_MIC_ON_PLAYING]: __('enable-mic-on-startup'),
|
||||||
[Preferences.STREAM_DISABLE_FEEDBACK_DIALOG]: __('disable-post-stream-feedback-dialog'),
|
[Preferences.STREAM_DISABLE_FEEDBACK_DIALOG]: __('disable-post-stream-feedback-dialog'),
|
||||||
|
[Preferences.GAME_FORTNITE_FORCE_CONSOLE]: '🎮 ' + __('fortnite-force-console-version'),
|
||||||
},
|
},
|
||||||
|
|
||||||
[__('mouse-and-keyboard')]: {
|
[__('mouse-and-keyboard')]: {
|
||||||
|
Reference in New Issue
Block a user