rodecomp/Source/Contents/Emblems/GuildEmblemLookup.cpp
ragnarok-clanker 55d37a7071 Maintenance: Forced resubmit of 17189, rebased on 7ea84b3b3 (main had added 25 more copies of the same lines, now converted too). Sha
Batch #17225 by ragnarok-clanker: forced by an admin (0 lower score(s), 1 changed function(s)); checked with 75 compiled unit(s), including every includer of Source/Utility/StdIntVectorCopy.h, Source/Utility/StdStringConcat.h, Source/Utility/StdStringCopy.h, Source/Utility/StdStringInsert.h, Source/Utility/StdStringMoveAssign.h, Source/Utility/StdStringVectorDestroy.h, Source/Utility/StdTraitsEqual.h, Source/Utility/StdTraitsFind.h, Source/Utility/StdWindowListEmplace.h.
2026-11-11 15:11:07 +00:00

22 lines
727 B
C++

#include "Client/Replay/Replay.h"
#include "Contents/Emblems/GuildEmblemReqBundle.h"
#include "Contents/Guild/GuildMgr.h"
#include "Resource/ResourceMgr.h"
#include "Utility/StdStringCopy.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;
}