mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-12 05:05:46 -04:00
Update to rcheevos v10.2.0
Leaderboard rurl hacks are now replaced by proper calls
This commit is contained in:
@ -1206,18 +1206,14 @@ std::optional<bool> TryEnumerateLeaderboardEntries(u32 id, std::function<bool(co
|
||||
}
|
||||
else
|
||||
{
|
||||
s_last_queried_lboard = id;
|
||||
s_lboard_entries.reset();
|
||||
|
||||
// TODO: Add paging? For now, stick to defaults
|
||||
char url[512];
|
||||
|
||||
size_t written = 0;
|
||||
rc_url_build_dorequest(url, sizeof(url), &written, "lbinfo", s_username.c_str());
|
||||
rc_url_append_unum(url, sizeof(url), &written, "i", id);
|
||||
rc_url_append_unum(url, sizeof(url), &written, "c",
|
||||
15); // Just over what a single page can store, should be a reasonable amount for now
|
||||
// rc_url_append_unum(url, sizeof(url), &written, "o", 0);
|
||||
|
||||
s_last_queried_lboard = id;
|
||||
s_lboard_entries.reset();
|
||||
// Just over what a single page can store, should be a reasonable amount for now
|
||||
rc_url_get_lboard_entries_near_user(url, sizeof(url), id, s_username.c_str(), 15);
|
||||
s_http_downloader->CreateRequest(url, GetLbInfoCallback);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user