mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-21 05:24:32 +03:00
feat(db): add getter for num records
This commit is contained in:
4 files changed
+10
-4
No files matched your search
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user