mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(db): add getter for num records
This commit is contained in:
parent
9d83df95f9
commit
eed060e512
4 changed files with 10 additions and 4 deletions
|
|
@ -12,9 +12,9 @@ int32_t CRealmList::s_preferredCategory = -1;
|
|||
int32_t CRealmList::s_selectedCategory = -1;
|
||||
|
||||
void CRealmList::Initialize() {
|
||||
CRealmList::s_categories.SetCount(g_cfg_CategoriesDB.m_numRecords);
|
||||
CRealmList::s_categories.SetCount(g_cfg_CategoriesDB.GetNumRecords());
|
||||
|
||||
for (int32_t i = 0; i < g_cfg_CategoriesDB.m_numRecords; i++) {
|
||||
for (int32_t i = 0; i < g_cfg_CategoriesDB.GetNumRecords(); i++) {
|
||||
auto m = SMemAlloc(sizeof(RealmCategory), __FILE__, __LINE__, 0x0);
|
||||
auto category = new (m) RealmCategory();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue