Updated rcheevos to 7.1.1

This commit is contained in:
leiradel 2018-09-30 13:06:42 +01:00
parent 9387eb559f
commit e3eff970f9

View File

@ -66,7 +66,7 @@ int rc_url_award_cheevo(char* buffer, size_t size, const char* user_name, const
hardcore ? 1 : 0
);
return -(written + 1 > size);
return (size_t)written >= size ? -1 : 0;
}
int rc_url_submit_lboard(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned lboard_id, unsigned value, unsigned char hash[16]) {
@ -94,7 +94,7 @@ int rc_url_submit_lboard(char* buffer, size_t size, const char* user_name, const
hash[ 8], hash[ 9], hash[10], hash[11],hash[12], hash[13], hash[14], hash[15]
);
return -(written + 1 > size);
return (size_t)written >= size ? -1 : 0;
}
int rc_url_get_gameid(char* buffer, size_t size, unsigned char hash[16]) {
@ -106,7 +106,7 @@ int rc_url_get_gameid(char* buffer, size_t size, unsigned char hash[16]) {
hash[ 8], hash[ 9], hash[10], hash[11],hash[12], hash[13], hash[14], hash[15]
);
return -(written + 1 > size);
return (size_t)written >= size ? -1 : 0;
}
int rc_url_get_patch(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned gameid) {
@ -131,7 +131,7 @@ int rc_url_get_patch(char* buffer, size_t size, const char* user_name, const cha
gameid
);
return -(written + 1 > size);
return (size_t)written >= size ? -1 : 0;
}
int rc_url_get_badge_image(char* buffer, size_t size, const char* badge_name) {
@ -142,7 +142,7 @@ int rc_url_get_badge_image(char* buffer, size_t size, const char* badge_name) {
badge_name
);
return -(written + 1 > size);
return (size_t)written >= size ? -1 : 0;
}
int rc_url_login_with_password(char* buffer, size_t size, const char* user_name, const char* password) {
@ -166,7 +166,7 @@ int rc_url_login_with_password(char* buffer, size_t size, const char* user_name,
urle_password
);
return -(written + 1 > size);
return (size_t)written >= size ? -1 : 0;
}
int rc_url_login_with_token(char* buffer, size_t size, const char* user_name, const char* login_token) {
@ -190,7 +190,7 @@ int rc_url_login_with_token(char* buffer, size_t size, const char* user_name, co
urle_login_token
);
return -(written + 1 > size);
return (size_t)written >= size ? -1 : 0;
}
int rc_url_get_unlock_list(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned gameid, int hardcore) {
@ -216,7 +216,7 @@ int rc_url_get_unlock_list(char* buffer, size_t size, const char* user_name, con
hardcore ? 1 : 0
);
return -(written + 1 > size);
return (size_t)written >= size ? -1 : 0;
}
int rc_url_post_playing(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned gameid) {
@ -241,5 +241,5 @@ int rc_url_post_playing(char* buffer, size_t size, const char* user_name, const
gameid
);
return -(written + 1 > size);
return (size_t)written >= size ? -1 : 0;
}