mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Fix native MKB not working
This commit is contained in:
parent
e48b277535
commit
9786c7c8ee
@ -7283,12 +7283,12 @@ if (window.BX_VIBRATION_INTENSITY && window.BX_VIBRATION_INTENSITY < 1) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
mkbIsMouseAndKeyboardTitle: function(funcStr) {
|
mkbIsMouseAndKeyboardTitle: function(funcStr) {
|
||||||
const text = 'isMouseAndKeyboardTitle:()=>yn';
|
const text = 'isMouseAndKeyboardTitle:()=>';
|
||||||
if (!funcStr.includes(text)) {
|
if (!funcStr.includes(text)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return funcStr.replace(text, `isMouseAndKeyboardTitle:()=>(function(e) { return e && e.details ? window.NATIVE_MKB_TITLES.includes(e.details.productId) : true; })`);
|
return funcStr.replace(text, `isMouseAndKeyboardTitle:()=>(function(e) { return e && e.details ? window.NATIVE_MKB_TITLES.includes(e.details.productId) : true; }),uwuwu:()=>`);
|
||||||
},
|
},
|
||||||
|
|
||||||
mkbMouseAndKeyboardEnabled: function(funcStr) {
|
mkbMouseAndKeyboardEnabled: function(funcStr) {
|
||||||
@ -7329,6 +7329,7 @@ if (window.BX_VIBRATION_INTENSITY && window.BX_VIBRATION_INTENSITY < 1) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('[Better xCloud] Remaining patches:', Patcher.#PATCH_ORDERS);
|
||||||
Patcher.#PATCH_ORDERS = Patcher.#PATCH_ORDERS.concat(Patcher.#PLAYING_PATCH_ORDERS);
|
Patcher.#PATCH_ORDERS = Patcher.#PATCH_ORDERS.concat(Patcher.#PLAYING_PATCH_ORDERS);
|
||||||
Patcher.#cleanupPatches();
|
Patcher.#cleanupPatches();
|
||||||
|
|
||||||
@ -7382,13 +7383,13 @@ if (window.BX_VIBRATION_INTENSITY && window.BX_VIBRATION_INTENSITY < 1) {
|
|||||||
getPref(Preferences.UI_LAYOUT) === 'tv' && ['tvLayout'],
|
getPref(Preferences.UI_LAYOUT) === 'tv' && ['tvLayout'],
|
||||||
|
|
||||||
ENABLE_XCLOUD_LOGGER && [
|
ENABLE_XCLOUD_LOGGER && [
|
||||||
'enableXcloudLogger',
|
|
||||||
'enableConsoleLogging',
|
'enableConsoleLogging',
|
||||||
|
'enableXcloudLogger',
|
||||||
],
|
],
|
||||||
|
|
||||||
getPref(Preferences.BLOCK_TRACKING) && [
|
getPref(Preferences.BLOCK_TRACKING) && [
|
||||||
'disableTrackEvent',
|
|
||||||
'blockWebRtcStatsCollector',
|
'blockWebRtcStatsCollector',
|
||||||
|
'disableTrackEvent',
|
||||||
],
|
],
|
||||||
|
|
||||||
getPref(Preferences.REMOTE_PLAY_ENABLED) && [
|
getPref(Preferences.REMOTE_PLAY_ENABLED) && [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user