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
20 lines
678 B
C++
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;
|
|
}
|