diff --git a/Source/Contents/Emblems/EmblemCache.cpp b/Source/Contents/Emblems/EmblemCache.cpp index 38d6cb35..0f1dc191 100644 --- a/Source/Contents/Emblems/EmblemCache.cpp +++ b/Source/Contents/Emblems/EmblemCache.cpp @@ -1,4 +1,6 @@ #include "Contents/Emblems/EmblemCache.h" +#include "Contents/Emblems/GuildEmblemReqBundle.h" +#include "Contents/GuildMgr.h" #include "UI/Window/UIWindow.h" #include "UI/Window/WindowManagerWindows.h" @@ -110,6 +112,14 @@ void EmblemCache::Receive(std::uint16_t state, std::uint32_t guild, std::uint32_ } } +// OFFSET: 0x0065EE40 +// FUNCTION: fn_05179 +void CGuildMgr::UpdateEmblemRequests( + CEmblemDataMgr& emblems, std::uint32_t accountId, const std::string& accountName, const char* token16, CConnection& connection, CAsyncWorkMgr& manager +) { + this->m_reqBundle->Update(emblems, accountId, accountName, token16, connection, manager); +} + // OFFSET: 0x0065EE50 // FUNCTION: fn_05180 void EmblemCache::Refresh(std::uint32_t guild) { diff --git a/Source/Contents/GuildMgr.h b/Source/Contents/GuildMgr.h index 6f5039d6..741de102 100644 --- a/Source/Contents/GuildMgr.h +++ b/Source/Contents/GuildMgr.h @@ -4,9 +4,13 @@ #include #include #include +#include #include class CGuildEmblemReqBundle; +class CEmblemDataMgr; +class CConnection; +class CAsyncWorkMgr; class CGuild { public: @@ -26,6 +30,9 @@ public: int GetEmblemVersion(std::uint32_t guildId) const; void SetEmblemVersion(std::uint32_t guildId, int version); + void UpdateEmblemRequests( + CEmblemDataMgr& emblems, std::uint32_t accountId, const std::string& accountName, const char* token16, CConnection& connection, CAsyncWorkMgr& manager + ); struct MemberData { /* 0000 */ int unknown_0000[5];