Use the server major version pulled from serverinfo when starting a stream

This commit is contained in:
Cameron Gutman
2016-03-10 22:37:26 -08:00
parent 02341e85e2
commit b796b496dd
3 changed files with 6 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ NvHTTP.prototype = {
if($root.attr("status_code") == 200) {
_self.paired = $root.find("PairStatus").text().trim() == 1;
_self.currentGame = parseInt($root.find("currentgame").text().trim(), 10);
_self.serverMajorVersion = parseInt($root.find("appversion").text().trim().substring(0, 1), 10);
}
});
},