Decompile fn_02529 (NRecycleObjectPool<CAccountLinkedUserDataLoadAsyncWork>::NRecycleObjectPool<CAccountLinkedUserDataLoadAsyncWork>)

Batch #11841 by Yommy: 1 byte-identical, 0 confirmed by peer review.

- fn_02529 NRecycleObjectPool<CAccountLinkedUserDataLoadAsyncWork>::NRecycleObjectPool<CAccountLinkedUserDataLoadAsyncWork>: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-05 04:56:12 +00:00
commit 62b1fe3ad4
2 changed files with 55 additions and 33 deletions

View file

@ -13,7 +13,7 @@
#include "Contents/Party/RegisterPartyAsyncWork.h"
#include "Contents/Party/StopRecruitingAsyncWork.h"
#include <memory>
#include <utility>
#include <new>
// OFFSET: 0x00576660
@ -34,24 +34,47 @@ CAsyncWorkRecycleObjectPoolMgr::~CAsyncWorkRecycleObjectPoolMgr() {
// OFFSET: 0x00578F30
// FUNCTION: fn_02566
bool CAsyncWorkRecycleObjectPoolMgr::RegisterPools() {
const auto insert = [&]<class T>(const char* name) {
std::unique_ptr<NRecycleObjectPoolInter> pool(new (std::nothrow) NRecycleObjectPool<T>(2));
if (!this->m_pools.emplace(name, pool.get()).second) {
return false;
}
(void) pool.release();
return true;
};
return insert.operator()<CAccountLinkedUserDataLoadAsyncWork>("AccountLinkedUserData_Load") &&
insert.operator()<CAccountLinkedUserDataSaveAsyncWork>("AccountLinkedUserData_Save") &&
insert.operator()<CCharacterLinkedUserDataLoadAsyncWork>("CharacterLinkedUserData_Load") &&
insert.operator()<CCharacterLinkedUserDataSaveAsyncWork>("CharacterLinkedUserData_Save") &&
insert.operator()<CEmblemDataUploadAsyncWork>("Emblem_Upload") && insert.operator()<CEmblemDataDownloadAsyncWork>("Emblem_Download") &&
insert.operator()<CMCStoreInfoBackupLoadAsyncWork>("MerchantStoreInformation_Load") &&
insert.operator()<CMCStoreInfoBackupSaveAsyncWork>("MerchantStoreInformation_Save") && insert.operator()<CLoadPartyListAsyncWork>("PartyList_Load") &&
insert.operator()<CLoadMyPartyAsyncWork>("MyParty_Load") && insert.operator()<CRegisterPartyAsyncWork>("Register_Party") &&
insert.operator()<CStopRecruitingAsyncWork>("Stop_Recruiting") && insert.operator()<CChangePartyMasterAsyncWork>("Change_PartyMaster") &&
insert.operator()<CLoadPartyInfoAsyncWork>("PartyInfo_Load");
if (!this->m_pools.insert(std::make_pair("AccountLinkedUserData_Load", new (std::nothrow) NRecycleObjectPool<CAccountLinkedUserDataLoadAsyncWork>(2))).second) {
return false;
}
if (!this->m_pools.insert(std::make_pair("AccountLinkedUserData_Save", new (std::nothrow) NRecycleObjectPool<CAccountLinkedUserDataSaveAsyncWork>(2))).second) {
return false;
}
if (!this->m_pools.insert(std::make_pair("CharacterLinkedUserData_Load", new (std::nothrow) NRecycleObjectPool<CCharacterLinkedUserDataLoadAsyncWork>(2))).second) {
return false;
}
if (!this->m_pools.insert(std::make_pair("CharacterLinkedUserData_Save", new (std::nothrow) NRecycleObjectPool<CCharacterLinkedUserDataSaveAsyncWork>(2))).second) {
return false;
}
if (!this->m_pools.insert(std::make_pair("Emblem_Upload", new (std::nothrow) NRecycleObjectPool<CEmblemDataUploadAsyncWork>(2))).second) {
return false;
}
if (!this->m_pools.insert(std::make_pair("Emblem_Download", new (std::nothrow) NRecycleObjectPool<CEmblemDataDownloadAsyncWork>(2))).second) {
return false;
}
if (!this->m_pools.insert(std::make_pair("MerchantStoreInformation_Load", new (std::nothrow) NRecycleObjectPool<CMCStoreInfoBackupLoadAsyncWork>(2))).second) {
return false;
}
if (!this->m_pools.insert(std::make_pair("MerchantStoreInformation_Save", new (std::nothrow) NRecycleObjectPool<CMCStoreInfoBackupSaveAsyncWork>(2))).second) {
return false;
}
if (!this->m_pools.insert(std::make_pair("PartyList_Load", new (std::nothrow) NRecycleObjectPool<CLoadPartyListAsyncWork>(2))).second) {
return false;
}
if (!this->m_pools.insert(std::make_pair("MyParty_Load", new (std::nothrow) NRecycleObjectPool<CLoadMyPartyAsyncWork>(2))).second) {
return false;
}
if (!this->m_pools.insert(std::make_pair("Register_Party", new (std::nothrow) NRecycleObjectPool<CRegisterPartyAsyncWork>(2))).second) {
return false;
}
if (!this->m_pools.insert(std::make_pair("Stop_Recruiting", new (std::nothrow) NRecycleObjectPool<CStopRecruitingAsyncWork>(2))).second) {
return false;
}
if (!this->m_pools.insert(std::make_pair("Change_PartyMaster", new (std::nothrow) NRecycleObjectPool<CChangePartyMasterAsyncWork>(2))).second) {
return false;
}
if (!this->m_pools.insert(std::make_pair("PartyInfo_Load", new (std::nothrow) NRecycleObjectPool<CLoadPartyInfoAsyncWork>(2))).second) {
return false;
}
return true;
}