Decompile fn_20960 (CreateCooldownOwner)
Batch #1355 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_20960 CreateCooldownOwner: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
83391f8a3a
commit
69232871b3
1 changed files with 16 additions and 6 deletions
|
|
@ -8,12 +8,7 @@ CooldownOwner::CooldownOwner() : m_initialized(false) {
|
||||||
this->m_initialized = true;
|
this->m_initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// INLINED
|
// OFFSET: 0x00CA60D0
|
||||||
CooldownOwner::~CooldownOwner() {
|
|
||||||
this->m_drawing.normal.clear();
|
|
||||||
this->m_drawing.reverse.clear();
|
|
||||||
this->m_values.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// OFFSET: 0x00CA61A0
|
// OFFSET: 0x00CA61A0
|
||||||
// FUNCTION: fn_20957
|
// FUNCTION: fn_20957
|
||||||
|
|
@ -43,6 +38,21 @@ void CooldownOwner::Erase(unsigned id) {
|
||||||
// GLOBAL: gl_24487
|
// GLOBAL: gl_24487
|
||||||
CooldownOwner* g_cooldownOwner = nullptr;
|
CooldownOwner* g_cooldownOwner = nullptr;
|
||||||
|
|
||||||
|
|
||||||
|
// OFFSET: 0x00CA64C0
|
||||||
|
// FUNCTION: fn_20960
|
||||||
|
bool CreateCooldownOwner() {
|
||||||
|
if (g_cooldownOwner) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
g_cooldownOwner = new (std::nothrow) CooldownOwner;
|
||||||
|
if (!g_cooldownOwner) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
// OFFSET: 0x00CA6610
|
// OFFSET: 0x00CA6610
|
||||||
// FUNCTION: fn_20961
|
// FUNCTION: fn_20961
|
||||||
void DestroyCooldownOwner() {
|
void DestroyCooldownOwner() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue