Update to NeoLegacy Latest

This commit is contained in:
2026-05-28 01:23:47 -04:00
parent f4390d5f0b
commit 10f9576b72
201 changed files with 12535 additions and 25235 deletions
@@ -5,32 +5,38 @@
class WindowsLeaderboardManager : public LeaderboardManager
{
public:
virtual void Tick() {}
virtual void Tick() override {}
//Open a session
virtual bool OpenSession() { return true; }
virtual bool OpenSession() override { return true; }
//Close a session
virtual void CloseSession() {}
virtual void CloseSession() override {}
//Delete a session
virtual void DeleteSession() {}
virtual void DeleteSession() override {}
//Write the given stats
//This is called synchronously and will not free any memory allocated for views when it is done
virtual bool WriteStats(unsigned int viewCount, ViewIn views) override;
virtual bool WriteStats(unsigned int viewCount, ViewIn views) { return false; }
virtual bool ReadStats_Friends(LeaderboardReadListener* callback, int difficulty, EStatsType type, PlayerUID myUID) { return false; }
virtual bool ReadStats_MyScore(LeaderboardReadListener* callback, int difficulty, EStatsType type, PlayerUID myUID, unsigned int readCount) { return false; }
virtual bool ReadStats_TopRank(LeaderboardReadListener* callback, int difficulty, EStatsType type, unsigned int startIndex, unsigned int readCount) { return false; }
virtual bool ReadStats_Friends(LeaderboardReadListener* callback, int difficulty, EStatsType type,
PlayerUID myUID, unsigned int startIndex, unsigned int readCount) override;
virtual bool ReadStats_MyScore(LeaderboardReadListener* callback, int difficulty, EStatsType type,
PlayerUID myUID, unsigned int readCount) override;
virtual bool ReadStats_TopRank(LeaderboardReadListener* callback, int difficulty, EStatsType type,
unsigned int startIndex, unsigned int readCount) override;
//Perform a flush of the stats
virtual void FlushStats() {}
virtual void FlushStats() override {}
//Cancel the current operation
virtual void CancelOperation() {}
virtual void CancelOperation() override {}
//Is the leaderboard manager idle.
virtual bool isIdle() { return true; }
};
virtual bool isIdle() override { return true; }
private:
bool ReadLocalStats(LeaderboardReadListener* callback, int difficulty, EStatsType type, PlayerUID uid);
bool BuildLocalReadScore(ReadScore& outScore, int difficulty, EStatsType type, PlayerUID uid);
};