mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Fix "alwaysShowStreamHud" not working on non-TV devices
This commit is contained in:
parent
e7c94f3ece
commit
416307e23a
3
dist/better-xcloud.user.js
vendored
3
dist/better-xcloud.user.js
vendored
@ -5847,7 +5847,8 @@ if (this.baseStorageKey in window.BX_EXPOSED.overrideSettings) {
|
|||||||
return !1;
|
return !1;
|
||||||
if (index = str2.indexOf("&&(0,", index - 100), index === -1)
|
if (index = str2.indexOf("&&(0,", index - 100), index === -1)
|
||||||
return !1;
|
return !1;
|
||||||
return str2 = str2.substring(0, index) + "|| true" + str2.substring(index), str2;
|
const commaIndex = str2.indexOf(",", index - 10);
|
||||||
|
return str2 = str2.substring(0, commaIndex) + ",true" + str2.substring(index), str2;
|
||||||
}
|
}
|
||||||
}, PATCH_ORDERS = [
|
}, PATCH_ORDERS = [
|
||||||
...getPref(PrefKey.NATIVE_MKB_ENABLED) === "on" ? [
|
...getPref(PrefKey.NATIVE_MKB_ENABLED) === "on" ? [
|
||||||
|
@ -759,6 +759,7 @@ if (this.baseStorageKey in window.BX_EXPOSED.overrideSettings) {
|
|||||||
return str;
|
return str;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// game-stream.js 24.16.4
|
||||||
alwaysShowStreamHud(str: string) {
|
alwaysShowStreamHud(str: string) {
|
||||||
let index = str.indexOf(',{onShowStreamMenu:');
|
let index = str.indexOf(',{onShowStreamMenu:');
|
||||||
if (index === -1) {
|
if (index === -1) {
|
||||||
@ -770,7 +771,8 @@ if (this.baseStorageKey in window.BX_EXPOSED.overrideSettings) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
str = str.substring(0, index) + '|| true' + str.substring(index);
|
const commaIndex = str.indexOf(',', index - 10);
|
||||||
|
str = str.substring(0, commaIndex) + ',true' + str.substring(index);
|
||||||
return str;
|
return str;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user