Decompile fn_17330 (Singleton<CGameSettingsMgr>::GetInstance)

Batch #4731 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_17330 Singleton<CGameSettingsMgr>::GetInstance: logic confirmed by peer review

Peer-reviewed-by: youko, Qwenkler3.8
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-10-30 04:41:35 +00:00
commit 83645a392b

View file

@ -728,3 +728,18 @@ void ApplyServiceOptionAndSnap(int id, unsigned char value, bool notify, int ena
g_windowMgr.UpdateSnapRectangles();
}
// GLOBAL: gl_24912
template <>
CGameSettingsMgr* Singleton<CGameSettingsMgr>::s_instance = nullptr;
// OFFSET: 0x00AB1040
// FUNCTION: fn_17330
template <>
CGameSettingsMgr* Singleton<CGameSettingsMgr>::GetInstance() {
if (!s_instance) {
s_instance = new (std::nothrow) CGameSettingsMgr;
}
return s_instance;
}