[XAM] More values for dummy achievement details.

[XAM] Provide image ID and flags for dummy achievement details.
This commit is contained in:
gibbed 2021-05-08 11:02:29 -05:00 committed by Rick Gibbed
parent 0f6bfcf0d5
commit 37a733e33a
1 changed files with 9 additions and 2 deletions

View File

@ -705,8 +705,15 @@ dword_result_t XamUserCreateAchievementEnumerator(dword_t title_id,
uint32_t dummy_count = std::min(100u, uint32_t(count));
for (uint32_t i = 1; i <= dummy_count; ++i) {
auto item = XStaticAchievementEnumerator::AchievementDetails{
i, fmt::format(u"Dummy {}", i), u"Dummy description",
u"Dummy unachieved"};
i, // dummy achievement id
fmt::format(u"Dummy {}", i),
u"Dummy description",
u"Dummy unachieved",
i, // dummy image id
0,
{0, 0},
8}; // flags=8 makes dummy achievements show up in Crackdown's
// achievements list.
e->AppendItem(item);
}