Check protocol version

This commit is contained in:
Iwan Timmer
2016-04-01 19:13:16 +02:00
parent 9b98371afc
commit b30cf20f8c
4 changed files with 18 additions and 1 deletions

View File

@@ -268,6 +268,16 @@ static int load_server_status(PSERVER_DATA server) {
i++;
} while (ret != GS_OK && i < 2);
if (ret == GS_OK) {
if (server->serverMajorVersion > MAX_SUPPORTED_GFE_VERSION) {
gs_error = "Ensure you're running the latest version of Moonlight Embedded or downgrade GeForce Experience and try again";
ret = GS_UNSUPPORTED_VERSION;
} else if (server->serverMajorVersion < MIN_SUPPORTED_GFE_VERSION) {
gs_error = "Moonlight Embedded requires a newer version of GeForce Experience. Please upgrade GFE on your PC and try again.";
ret = GS_UNSUPPORTED_VERSION;
}
}
return ret;
}