mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
Add special error text for the -1 launch error code
This commit is contained in:
parent
227e1d7c62
commit
733d27ed9e
@ -729,8 +729,16 @@ function startGame(host, appID) {
|
|||||||
$xml = $($.parseXML(launchResult.toString()));
|
$xml = $($.parseXML(launchResult.toString()));
|
||||||
$root = $xml.find('root');
|
$root = $xml.find('root');
|
||||||
|
|
||||||
if ($root.attr('status_code') != 200) {
|
var status_code = $root.attr('status_code')
|
||||||
snackbarLog('Error ' + $root.attr('status_code') + ': ' + $root.attr('status_message'));
|
if (status_code != 200) {
|
||||||
|
var status_message = $root.attr('status_message')
|
||||||
|
if (status_code == 4294967295 && status_message == 'Invalid') {
|
||||||
|
// Special case handling an audio capture error which GFE doesn't
|
||||||
|
// provide any useful status message for.
|
||||||
|
status_code = 418;
|
||||||
|
status_message = 'Missing audio capture device. Reinstall GeForce Experience.';
|
||||||
|
}
|
||||||
|
snackbarLog('Error ' + status_code + ': ' + status_message);
|
||||||
showApps(host);
|
showApps(host);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user