mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Add a way to configure which leaderboards are seen by the game.
This commit is contained in:
parent
7939796680
commit
f4ab249f36
6 changed files with 92 additions and 9 deletions
|
|
@ -33,6 +33,11 @@ struct Mod_entry {
|
|||
std::string path;
|
||||
};
|
||||
|
||||
struct Leaderboard_config {
|
||||
enum ELeaderboardSortMethod sort_method;
|
||||
enum ELeaderboardDisplayType display_type;
|
||||
};
|
||||
|
||||
class Settings {
|
||||
CSteamID steam_id;
|
||||
CGameID game_id;
|
||||
|
|
@ -44,6 +49,8 @@ class Settings {
|
|||
std::vector<struct DLC_entry> DLCs;
|
||||
std::vector<struct Mod_entry> mods;
|
||||
std::map<AppId_t, std::string> app_paths;
|
||||
std::map<std::string, Leaderboard_config> leaderboards;
|
||||
bool create_unknown_leaderboards;
|
||||
|
||||
public:
|
||||
#ifdef LOBBY_CONNECT
|
||||
|
|
@ -78,6 +85,12 @@ public:
|
|||
Mod_entry getMod(PublishedFileId_t id);
|
||||
bool isModInstalled(PublishedFileId_t id);
|
||||
std::set<PublishedFileId_t> modSet();
|
||||
|
||||
//leaderboards
|
||||
void setLeaderboard(std::string leaderboard, enum ELeaderboardSortMethod sort_method, enum ELeaderboardDisplayType display_type);
|
||||
std::map<std::string, Leaderboard_config> getLeaderboards() { return leaderboards; }
|
||||
void setCreateUnknownLeaderboards(bool enable) {create_unknown_leaderboards = enable;}
|
||||
bool createUnknownLeaderboards() { return create_unknown_leaderboards; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue