mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
Fix passing GFE version to LiStartConnection()
This commit is contained in:
parent
b2bee37fe2
commit
f16299ebcc
@ -749,7 +749,7 @@ function startGame(host, appID) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sendMessage('startRequest', [host.address, streamWidth, streamHeight, frameRate,
|
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()
|
$root.find('sessionUrl0').text().trim()
|
||||||
]);
|
]);
|
||||||
}, function(failedLaunchApp) {
|
}, function(failedLaunchApp) {
|
||||||
|
@ -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.userEnteredAddress = userEnteredAddress; // if the user entered an address, we keep it on hand to try when polling
|
||||||
this.serverUid = '';
|
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.supportedDisplayModes = {}; // key: y-resolution:x-resolution, value: array of supported framerates (only ever seen 30 or 60, here)
|
||||||
this.gputype = '';
|
this.gputype = '';
|
||||||
this.numofapps = 0;
|
this.numofapps = 0;
|
||||||
@ -261,7 +261,7 @@ NvHTTP.prototype = {
|
|||||||
string += 'current game: ' + this.currentGame + '\r\n';
|
string += 'current game: ' + this.currentGame + '\r\n';
|
||||||
string += 'server major version: ' + this.serverMajorVersion + '\r\n';
|
string += 'server major version: ' + this.serverMajorVersion + '\r\n';
|
||||||
string += 'appversion: ' + this.appVersion + '\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 += 'gpu type: ' + this.gputype + '\r\n';
|
||||||
string += 'number of apps: ' + this.numofapps + '\r\n';
|
string += 'number of apps: ' + this.numofapps + '\r\n';
|
||||||
string += 'supported display modes: ' + '\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.
|
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.gputype = $root.find('gputype').text().trim();
|
||||||
this.numofapps = $root.find('numofapps').text().trim();
|
this.numofapps = $root.find('numofapps').text().trim();
|
||||||
// now for the hard part: parsing the supported streaming
|
// now for the hard part: parsing the supported streaming
|
||||||
|
Loading…
x
Reference in New Issue
Block a user