F4MP/tiltedcode/Code/client/Games/INISettingCollection.cpp
Jous99 37b16f1547 code upload
codigo original de f4mp y tilted para referencias
2026-01-06 18:45:00 +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;
}