mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Pylon: enforce consistency in schema
This commit is contained in:
parent
2513d9e70e
commit
bca3a595e5
@ -432,7 +432,7 @@ bool CPylon::GetEULA(MSEulaData_t& outData, string& outMessage) const
|
||||
|
||||
// check if the EULA response fields are valid.
|
||||
if (!JSON_GetValue(data, "version", JSONFieldType_e::kSint32, version) ||
|
||||
!JSON_GetValue(data, "lang", JSONFieldType_e::kString, language) ||
|
||||
!JSON_GetValue(data, "language", JSONFieldType_e::kString, language) ||
|
||||
!JSON_GetValue(data, "contents", JSONFieldType_e::kString, contents))
|
||||
{
|
||||
outMessage = "schema is invalid";
|
||||
|
Loading…
x
Reference in New Issue
Block a user