mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 15:47:18 +02:00
Fix not adding custom controller IDs
This commit is contained in:
parent
070943e3de
commit
94c742cbd6
@ -1,5 +1,6 @@
|
|||||||
export enum GamePassCloudGallery {
|
export enum GamePassCloudGallery {
|
||||||
ALL = 'ce573635-7c18-4d0c-9d68-90b932393470',
|
ALL = '29a81209-df6f-41fd-a528-2ae6b91f719c',
|
||||||
|
ALL_WITH_BYGO = 'ce573635-7c18-4d0c-9d68-90b932393470',
|
||||||
MOST_POPULAR = 'e7590b22-e299-44db-ae22-25c61405454c',
|
MOST_POPULAR = 'e7590b22-e299-44db-ae22-25c61405454c',
|
||||||
NATIVE_MKB = '8fa264dd-124f-4af3-97e8-596fcdf4b486',
|
NATIVE_MKB = '8fa264dd-124f-4af3-97e8-596fcdf4b486',
|
||||||
TOUCH = '9c86f07a-f3e8-45ad-82a0-a1f759597059',
|
TOUCH = '9c86f07a-f3e8-45ad-82a0-a1f759597059',
|
||||||
|
@ -54,11 +54,16 @@ export const BxExposed = {
|
|||||||
let customList = TouchController.getCustomList();
|
let customList = TouchController.getCustomList();
|
||||||
|
|
||||||
// Remove non-cloud games from the official list
|
// Remove non-cloud games from the official list
|
||||||
const allGames = sigls[GamePassCloudGallery.ALL].data.products;
|
const siglId = GamePassCloudGallery.ALL_WITH_BYGO;
|
||||||
customList = customList.filter(id => allGames.includes(id));
|
if (siglId in sigls) {
|
||||||
|
const allGames = sigls[siglId].data.products;
|
||||||
|
customList = customList.filter(id => allGames.includes(id));
|
||||||
|
|
||||||
// Add to the official touchlist
|
// Add to the official touchlist
|
||||||
sigls[GamePassCloudGallery.TOUCH]?.data.products.push(...customList);
|
sigls[GamePassCloudGallery.TOUCH]?.data.products.push(...customList);
|
||||||
|
} else {
|
||||||
|
BxLogger.warning(LOG_TAG, 'Sigl not found: ' + siglId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
BxLogger.error(LOG_TAG, e);
|
BxLogger.error(LOG_TAG, e);
|
||||||
|
@ -253,7 +253,7 @@ export function interceptHttpRequests() {
|
|||||||
const response = await NATIVE_FETCH(request, init);
|
const response = await NATIVE_FETCH(request, init);
|
||||||
const obj = await response.clone().json();
|
const obj = await response.clone().json();
|
||||||
|
|
||||||
if (url.includes(GamePassCloudGallery.ALL)) {
|
if (url.includes(GamePassCloudGallery.ALL) || url.includes(GamePassCloudGallery.ALL_WITH_BYGO)) {
|
||||||
for (let i = 1; i < obj.length; i++) {
|
for (let i = 1; i < obj.length; i++) {
|
||||||
gamepassAllGames.push(obj[i].id);
|
gamepassAllGames.push(obj[i].id);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user