rodecomp/Source/Contents/GuildEmblemLookup.cpp
ragnarok-clanker dab70b8cd8 Maintenance: [forced, user-approved] Family G28: remove EmblemCache (inventory row 71). Its fields are CGuildMgr members (g_guildMgr
Batch #10253 by ragnarok-clanker: forced by an admin (2 lower score(s), 8 changed function(s)); checked with 24 compiled unit(s), including every includer of Source/Contents/GuildMgr.h, Source/Contents/Emblems/EmblemCache.h.
Deletes: Source/Contents/Emblems/EmblemCache.h
2026-11-03 12:45:41 +00:00

20 lines
678 B
C++

#include "Client/Replay.h"
#include "Contents/Emblems/GuildEmblemReqBundle.h"
#include "Contents/GuildMgr.h"
#include "Resource/ResourceMgr.h"
// OFFSET: 0x0065E450
// FUNCTION: fn_05174
std::string CGuildMgr::GetEmblemFilename(std::uint32_t guildId) {
const auto found = this->m_guilds.find(guildId);
if (found == this->m_guilds.end() || found->second.m_emblemVersion <= 0) {
return std::string();
}
std::string filename = this->EmblemFilename(guildId, found->second.m_emblemVersion);
if (!ResourceMgr::Instance().Load(filename) && g_replayAnimationScaling == 0) {
this->m_reqBundle->Add(guildId, this->GetEmblemVersion(guildId));
}
return filename;
}