Add special error text for the -1 launch error code

This commit is contained in:
Cameron Gutman 2020-04-25 16:16:52 -07:00
parent 227e1d7c62
commit 733d27ed9e

View File

@ -729,8 +729,16 @@ function startGame(host, appID) {
$xml = $($.parseXML(launchResult.toString()));
$root = $xml.find('root');
if ($root.attr('status_code') != 200) {
snackbarLog('Error ' + $root.attr('status_code') + ': ' + $root.attr('status_message'));
var status_code = $root.attr('status_code')
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);
return;
}