Update to support GFE 3.0.7

This commit is contained in:
Cameron Gutman
2016-10-05 19:25:51 -07:00
parent bd881aaee4
commit ee5ee588bc
5 changed files with 23 additions and 16 deletions

View File

@@ -504,7 +504,7 @@ function startGame(host, appID) {
if(host.currentGame == appID) { // if user wants to launch the already-running app, then we resume it.
return host.resumeApp(rikey, rikeyid).then(function (ret) {
sendMessage('startRequest', [host.address, streamWidth, streamHeight, frameRate,
bitrate.toString(), host.serverMajorVersion.toString(), rikey, rikeyid.toString()]);
bitrate.toString(), rikey, rikeyid.toString(), host.appVersion]);
}, function (failedResumeApp) {
console.log('ERROR: failed to resume the app!');
console.log('Returned error was: ' + failedResumeApp);
@@ -522,7 +522,7 @@ function startGame(host, appID) {
0x030002 // Surround channel mask << 16 | Surround channel count
).then(function (ret) {
sendMessage('startRequest', [host.address, streamWidth, streamHeight, frameRate,
bitrate.toString(), host.serverMajorVersion.toString(), rikey, rikeyid.toString()]);
bitrate.toString(), rikey, rikeyid.toString(), host.appVersion]);
}, function (failedLaunchApp) {
console.log('ERROR: failed to launch app with appID: ' + appID);
console.log('Returned error was: ' + failedLaunchApp);

View File

@@ -37,6 +37,7 @@ function NvHTTP(address, clientUid, userEnteredAddress = '') {
this.paired = false;
this.currentGame = 0;
this.serverMajorVersion = 0;
this.appVersion = '';
this.clientUid = clientUid;
this._memCachedBoxArtArray = {};
this._pollCount = 0;
@@ -159,6 +160,7 @@ NvHTTP.prototype = {
string += 'is paired: ' + this.paired + '\r\n';
string += 'current game: ' + this.currentGame + '\r\n';
string += 'server major version: ' + this.serverMajorVersion + '\r\n';
string += 'appversion: ' + this.appVersion + '\r\n';
string += 'GFE version: ' + this.GfeVersion + '\r\n';
string += 'gpu type: ' + this.gputype + '\r\n';
string += 'number of apps: ' + this.numofapps + '\r\n';
@@ -191,7 +193,8 @@ NvHTTP.prototype = {
this.paired = $root.find("PairStatus").text().trim() == 1;
this.currentGame = parseInt($root.find("currentgame").text().trim(), 10);
this.serverMajorVersion = parseInt($root.find("appversion").text().trim().substring(0, 1), 10);
this.appVersion = $root.find("appversion").text().trim();
this.serverMajorVersion = parseInt(this.appVersion.substring(0, 1), 10);
this.serverUid = $root.find('uniqueid').text().trim();
this.hostname = $root.find('hostname').text().trim();
this.externalIP = $root.find('ExternalIP').text().trim();