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:
parent
8ca76a6cd6
commit
83645a392b
1 changed files with 15 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue