mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-03 06:07:19 +02:00
Fix rocket animation not showing in Remote Play
This commit is contained in:
parent
e2806fea68
commit
c9bc93f604
6
dist/better-xcloud.user.js
vendored
6
dist/better-xcloud.user.js
vendored
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user