From c9bc93f604a86f453db7a9119cbcc6ec8ae55a30 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sun, 28 Apr 2024 10:30:50 +0700 Subject: [PATCH] Fix rocket animation not showing in Remote Play --- dist/better-xcloud.user.js | 6 +----- src/utils/network.ts | 10 ++-------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/dist/better-xcloud.user.js b/dist/better-xcloud.user.js index a863782..907d53f 100644 --- a/dist/better-xcloud.user.js +++ b/dist/better-xcloud.user.js @@ -9647,7 +9647,6 @@ var clearDbLogs = function(dbName, table) { console.log(`[Better xCloud] Cleared ${dbName}.${table}`); }; } catch (ex) { - console.log(ex); } }; }; @@ -9770,14 +9769,11 @@ function interceptHttpRequests() { BxEvent.dispatch(window, BxEvent.STREAM_STARTING); } let requestType; - if (STATES.remotePlay.isPlaying || url.includes("/sessions/home") || url.includes("xhome.")) { + if (url.includes("/sessions/home") || url.includes("xhome.") || STATES.remotePlay.isPlaying && url.endsWith("/inputconfigs")) { requestType = RequestType.XHOME; } else { requestType = RequestType.XCLOUD; } - if (url.includes(".gamepass.com")) { - requestType = RequestType.XCLOUD; - } if (requestType === RequestType.XHOME) { return XhomeInterceptor.handle(request); } diff --git a/src/utils/network.ts b/src/utils/network.ts index 3776419..c3a9dfe 100644 --- a/src/utils/network.ts +++ b/src/utils/network.ts @@ -32,9 +32,7 @@ function clearDbLogs(dbName: string, table: string) { objectStoreRequest.onsuccess = function() { console.log(`[Better xCloud] Cleared ${dbName}.${table}`); }; - } catch (ex) { - console.log(ex); - } + } catch (ex) {} } } @@ -567,16 +565,12 @@ export function interceptHttpRequests() { } let requestType: RequestType; - if (STATES.remotePlay.isPlaying || url.includes('/sessions/home') || url.includes('xhome.')) { + if (url.includes('/sessions/home') || url.includes('xhome.') || (STATES.remotePlay.isPlaying && url.endsWith('/inputconfigs'))) { requestType = RequestType.XHOME; } else { requestType = RequestType.XCLOUD; } - if (url.includes('.gamepass.com')) { - requestType = RequestType.XCLOUD; - } - if (requestType === RequestType.XHOME) { return XhomeInterceptor.handle(request as Request); }