Bump RP-Version to 9.0 for Session and Ctrl, #51

This commit is contained in:
Florian Märkl 2019-10-08 18:02:47 +02:00
commit 4361ba4583
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
3 changed files with 12 additions and 6 deletions

View file

@ -42,6 +42,10 @@ extern "C" {
#define CHIAKI_RP_APPLICATION_REASON_INVALID_PSN_ID 0x80108b02 #define CHIAKI_RP_APPLICATION_REASON_INVALID_PSN_ID 0x80108b02
#define CHIAKI_RP_APPLICATION_REASON_IN_USE 0x80108b10 #define CHIAKI_RP_APPLICATION_REASON_IN_USE 0x80108b10
#define CHIAKI_RP_APPLICATION_REASON_CRASH 0x80108b15 #define CHIAKI_RP_APPLICATION_REASON_CRASH 0x80108b15
#define CHIAKI_RP_APPLICATION_REASON_CLIENT_OUTDATED 0x80108b11
// unknown: 0x80108bff
#define CHIAKI_RP_CLIENT_VERSION "9.0"
const char *chiaki_rp_application_reason_string(uint32_t reason); const char *chiaki_rp_application_reason_string(uint32_t reason);

View file

@ -570,7 +570,7 @@ static ChiakiErrorCode ctrl_connect(ChiakiCtrl *ctrl)
"Connection: keep-alive\r\n" "Connection: keep-alive\r\n"
"Content-Length: 0\r\n" "Content-Length: 0\r\n"
"RP-Auth: %s\r\n" "RP-Auth: %s\r\n"
"RP-Version: 8.0\r\n" "RP-Version: " CHIAKI_RP_CLIENT_VERSION "\r\n"
"RP-Did: %s\r\n" "RP-Did: %s\r\n"
"RP-ControllerType: 3\r\n" "RP-ControllerType: 3\r\n"
"RP-ClientType: 11\r\n" "RP-ClientType: 11\r\n"

View file

@ -57,6 +57,8 @@ const char *chiaki_rp_application_reason_string(uint32_t reason)
return "Remote is already in use"; return "Remote is already in use";
case CHIAKI_RP_APPLICATION_REASON_CRASH: case CHIAKI_RP_APPLICATION_REASON_CRASH:
return "Remote Play on Console crashed"; return "Remote Play on Console crashed";
case CHIAKI_RP_APPLICATION_REASON_CLIENT_OUTDATED:
return "Client outdated";
default: default:
return "unknown"; return "unknown";
} }
@ -648,7 +650,7 @@ static bool session_thread_request_session(ChiakiSession *session)
"Connection: close\r\n" "Connection: close\r\n"
"Content-Length: 0\r\n" "Content-Length: 0\r\n"
"RP-Registkey: %s\r\n" "RP-Registkey: %s\r\n"
"Rp-Version: 8.0\r\n" "Rp-Version: " CHIAKI_RP_CLIENT_VERSION "\r\n"
"\r\n"; "\r\n";
size_t regist_key_len = sizeof(session->connect_info.regist_key); size_t regist_key_len = sizeof(session->connect_info.regist_key);