Compare commits
2 Commits
d8b35621c8
...
ac5ad00674
Author | SHA1 | Date |
---|---|---|
Nicolas Gnyra | ac5ad00674 | |
Nicolas Gnyra | 6647317b88 |
|
@ -18,13 +18,12 @@
|
||||||
#ifndef __INCLUDED_STEAM_USER_STATS_H__
|
#ifndef __INCLUDED_STEAM_USER_STATS_H__
|
||||||
#define __INCLUDED_STEAM_USER_STATS_H__
|
#define __INCLUDED_STEAM_USER_STATS_H__
|
||||||
|
|
||||||
#include <limits>
|
|
||||||
#include "base.h"
|
#include "base.h"
|
||||||
#include "../overlay_experimental/steam_overlay.h"
|
#include "../overlay_experimental/steam_overlay.h"
|
||||||
|
|
||||||
struct Steam_Leaderboard_Score {
|
struct Steam_Leaderboard_Score {
|
||||||
CSteamID steam_id;
|
CSteamID steam_id;
|
||||||
int32 score;
|
int32 score = 0;
|
||||||
std::vector<int32> score_details;
|
std::vector<int32> score_details;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -832,7 +831,6 @@ SteamAPICall_t FindOrCreateLeaderboard( const char *pchLeaderboardName, ELeaderb
|
||||||
leaderboard.name = std::string(pchLeaderboardName);
|
leaderboard.name = std::string(pchLeaderboardName);
|
||||||
leaderboard.sort_method = eLeaderboardSortMethod;
|
leaderboard.sort_method = eLeaderboardSortMethod;
|
||||||
leaderboard.display_type = eLeaderboardDisplayType;
|
leaderboard.display_type = eLeaderboardDisplayType;
|
||||||
leaderboard.self_score.score = eLeaderboardSortMethod == k_ELeaderboardSortMethodAscending ? INT_MAX : INT_MIN;
|
|
||||||
|
|
||||||
std::vector<Steam_Leaderboard_Score> scores = load_leaderboard_scores(pchLeaderboardName);
|
std::vector<Steam_Leaderboard_Score> scores = load_leaderboard_scores(pchLeaderboardName);
|
||||||
for (auto &s : scores) {
|
for (auto &s : scores) {
|
||||||
|
|
Loading…
Reference in New Issue