WS returns "leaderboard": [] on lazer. Works on stable.
Lazer has the leaderboard as a skin component and might not be always visible / added on the screen.
|
* Doesn't work for ReplayPlayer |
|
* @see https://github.com/ppy/osu/issues/27609 |
|
*/ |
|
leaderboard(): ILeaderboard { |
|
const player = this.player(); |
|
|
|
const personalScore = this.readLeaderboardScore( |
|
this.scoreInfo(player), |
|
-1 |
|
); |
|
|
|
// TODO: update once I bother todo it :) |
|
// const leaderboardScores = this.process.readIntPtr( |
|
// player + (this.replayMode ? 0x4e8 : 0x520) |
|
// ); |
|
|
|
// const items = this.readListItems( |
|
// this.process.readIntPtr(leaderboardScores + 0x18) |
|
// ); |
|
|
|
// const scores: LeaderboardPlayer[] = []; |
|
|
|
// for (let i = 0; i < items.length; i++) { |
|
// scores.push(this.readLeaderboardScore(items[i], i)); |
|
// } |
|
|
|
return [this.isLeaderboardVisible, personalScore, []]; |
|
} |
WS returns
"leaderboard": []on lazer. Works on stable.Lazer has the leaderboard as a skin component and might not be always visible / added on the screen.
tosu/packages/tosu/src/memory/lazer.ts
Lines 3444 to 3471 in 9f42c88