mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:00:54 +01:00
25 lines
523 B
C++
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;
|
|
}
|