From f16299ebcc46323663b1ac82adf01c5b09c78ed6 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 31 Oct 2022 18:00:04 -0500 Subject: [PATCH] Fix passing GFE version to LiStartConnection() --- static/js/index.js | 2 +- static/js/utils.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index 0cd3d64..5d230b6 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -749,7 +749,7 @@ function startGame(host, appID) { } sendMessage('startRequest', [host.address, streamWidth, streamHeight, frameRate, - bitrate.toString(), rikey, rikeyid.toString(), mouse_lock_enabled, host.appVersion, + bitrate.toString(), rikey, rikeyid.toString(), mouse_lock_enabled, host.appVersion, host.gfeVersion, $root.find('sessionUrl0').text().trim() ]); }, function(failedLaunchApp) { diff --git a/static/js/utils.js b/static/js/utils.js index 9e47562..e28e6ee 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -95,7 +95,7 @@ function NvHTTP(address, clientUid, userEnteredAddress = '') { this.userEnteredAddress = userEnteredAddress; // if the user entered an address, we keep it on hand to try when polling this.serverUid = ''; - this.GfeVersion = ''; + this.gfeVersion = ''; this.supportedDisplayModes = {}; // key: y-resolution:x-resolution, value: array of supported framerates (only ever seen 30 or 60, here) this.gputype = ''; this.numofapps = 0; @@ -261,7 +261,7 @@ NvHTTP.prototype = { 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 += 'GFE version: ' + this.gfeVersion + '\r\n'; string += 'gpu type: ' + this.gputype + '\r\n'; string += 'number of apps: ' + this.numofapps + '\r\n'; string += 'supported display modes: ' + '\r\n'; @@ -301,7 +301,7 @@ NvHTTP.prototype = { } try { // these aren't critical for functionality, and don't necessarily exist in older GFE versions. - this.GfeVersion = $root.find('GfeVersion').text().trim(); + this.gfeVersion = $root.find('GfeVersion').text().trim(); this.gputype = $root.find('gputype').text().trim(); this.numofapps = $root.find('numofapps').text().trim(); // now for the hard part: parsing the supported streaming