F4MP/codigos originales/tiltedcode/Code/client/Games/INISettingCollection.cpp
2026-01-06 18:53:59 +01:00

25 lines
523 B
C++

#include <TiltedOnlinePCH.h>
#include <Games/TES.h>
INISettingCollection* INISettingCollection::Get() noexcept
{
POINTER_SKYRIMSE(INISettingCollection*, settingCollection, 411155);
return *settingCollection.Get();
}
Setting* INISettingCollection::GetSetting(const char* acpName) noexcept
{
Entry* pCurrent = &head;
while (pCurrent)
{
if (_stricmp(acpName, pCurrent->setting->name) == 0)
return pCurrent->setting;
pCurrent = pCurrent->next;
}
return nullptr;
}