rodecomp/Source/Utility/Async/NAsyncWork.cpp
ragnarok-clanker 7b5f29a7ef Decompile 10 functions in Source/UI/GameSettings/UIHotKeyWnd.cpp, Source/UI/Items/UIMerchantItemLogWnd.cpp, ...
Batch #16976 by KWDev: 10 byte-identical, 0 confirmed by peer review.

- fn_12740 UIHotKeyWnd::SaveHotkeys: byte-identical
- fn_13575 UIMerchantItemLogWnd::OnCreate: byte-identical
- fn_13578 UIMerchantItemLogWnd::OnProcess: byte-identical
- fn_09912 UIRefining_Notice::Paint: byte-identical
- fn_11504 UIWindow::WrapLinkText: byte-identical
- fn_09228 UIAchListWnd::OnLBtnDown: byte-identical
- fn_16914 UIWindow::UIWindow: byte-identical
- fn_12099 UIWindow::DrawTitleBarAt: byte-identical
- fn_07560 NAsyncWorkPtr::NAsyncWorkPtr: byte-identical
- fn_10163 UIRuneSetinfoList::AddLine: byte-identical (already on main)

Merged automatically: every function is byte-identical to the original.
2026-11-11 12:05:23 +00:00

44 lines
1 KiB
C++

#include "Utility/Async/NAsyncWork.h"
#include <utility>
// INLINED
inline NRecycleObject::~NRecycleObject() = default;
// INLINED
NAsyncWork::~NAsyncWork() = default;
// OFFSET: 0x005BAEE0
// FUNCTION: fn_03450
bool NAsyncWork::Execute() {
return false;
}
// OFFSET: 0x005BA900
// FUNCTION: fn_03448
void NAsyncWork::Complete() {
}
// OFFSET: 0x00731A90
// FUNCTION: fn_07559
NAsyncWorkPtr::NAsyncWorkPtr(NAsyncWorkPtr& other) : m_manager(other.m_manager), m_work(other.m_work) {
other.m_manager = nullptr;
other.m_work = nullptr;
}
// OFFSET: 0x00731AC0
// FUNCTION: fn_07560
NAsyncWorkPtr::NAsyncWorkPtr(NRecycleObjectPoolMgr* manager, std::string poolName) : m_manager(manager), m_work(nullptr) {
if (this->m_manager) {
this->m_work = static_cast<NAsyncWork*>(this->m_manager->Acquire(poolName));
}
}
// OFFSET: 0x00731B50
// FUNCTION: fn_07561
NAsyncWorkPtr::~NAsyncWorkPtr() {
if (this->m_work) {
this->m_manager->Release(this->m_work->PoolName(), this->m_work);
this->m_work = nullptr;
}
}