mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-07-14 23:21:17 -05:00
14 lines
496 B
C++
14 lines
496 B
C++
#include "UI/TitleView.hpp"
|
|
#include "Config.hpp"
|
|
|
|
UI::TitleView::TitleView(Data::User *User) : m_User(User)
|
|
{
|
|
for (size_t i = 0; i < m_User->GetTotalDataEntries(); i++)
|
|
{
|
|
// Get pointer to data from user save index I.
|
|
Data::TitleInfo *CurrentTitleInfo = Data::GetTitleInfoByID(m_User->GetApplicationIDAt(i));
|
|
// Emplace is faster than push
|
|
m_TitleTiles.emplace_back(Config::IsFavorite(m_User->GetApplicationIDAt(i)), CurrentTitleInfo->GetIcon());
|
|
}
|
|
}
|