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.
22 lines
727 B
C++
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;
|
|
}
|