mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-22 16:16:39 +00:00
Check protocol version
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user