Decompile fn_04738 (RankingBoardStyles)

Batch #1682 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_04738 RankingBoardStyles: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
This commit is contained in:
ragnarok-clanker 2026-10-28 20:08:30 +00:00
commit f702c5e6f6
2 changed files with 21 additions and 0 deletions

View file

@ -4,6 +4,17 @@
#include <cstring>
#include <crtdbg.h>
// OFFSET: 0x006378D0
// FUNCTION: fn_04738
std::map<int, RankingBoardStyle> RankingBoardStyles() {
std::map<int, RankingBoardStyle> styles;
styles.insert({0, {"========== BLACKSMITH RANK ============", 0x9B9B9B, 0xCDCDCD}});
styles.insert({1, {"=========== ALCHEMIST RANK =============", 0x9BCD9B, 0xCDFFCD}});
styles.insert({2, {"============ TAEKWON RANK =============", 0xCD9B9B, 0xFFCDCD}});
styles.insert({3, {"=========== KILLER RANK ==============", 0x9B9B9B, 0xCDCDCD}});
return styles;
}
// OFFSET: 0x006380A0
// FUNCTION: fn_04740
const void* CShowRankingScheduler::SetData(const void* data) {

View file

@ -3,8 +3,17 @@
#include <cstddef>
#include <cstdint>
#include <map>
#include <vector>
struct RankingBoardStyle {
/* 0000 */ const char* title;
/* 0004 */ std::uint32_t color;
/* 0008 */ std::uint32_t background;
};
std::map<int, RankingBoardStyle> RankingBoardStyles();
class CShowRankingScheduler {
public:
virtual ~CShowRankingScheduler() = default;
@ -19,6 +28,7 @@ public:
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(RankingBoardStyle) == 12);
static_assert(offsetof(CShowRankingScheduler, rankingData) == 0x30);
static_assert(offsetof(CShowRankingScheduler, rankingList) == 0x90);
#endif