mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-25 18:46:55 +01:00
nn_boss: Implement startIndex parameter usage in nn:boss:::GetDataList (#1162)
This commit is contained in:
parent
9b30be0258
commit
7b635e7eb8
@ -1169,14 +1169,17 @@ bossBufferVector->buffer = (uint8*)bossRequest;
|
|||||||
// initialize titleId of storage if not already done
|
// initialize titleId of storage if not already done
|
||||||
nnBossStorage_prepareTitleId(storage);
|
nnBossStorage_prepareTitleId(storage);
|
||||||
|
|
||||||
cemu_assert_debug(startIndex == 0); // non-zero index is todo
|
if(startIndex >= FAD_ENTRY_MAX_COUNT) {
|
||||||
|
*outputEntryCount = 0;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// load fad.db
|
// load fad.db
|
||||||
BossStorageFadEntry* fadTable = nnBossStorageFad_getTable(storage);
|
BossStorageFadEntry* fadTable = nnBossStorageFad_getTable(storage);
|
||||||
if (fadTable)
|
if (fadTable)
|
||||||
{
|
{
|
||||||
sint32 validEntryCount = 0;
|
sint32 validEntryCount = 0;
|
||||||
for (sint32 i = 0; i < FAD_ENTRY_MAX_COUNT; i++)
|
for (sint32 i = startIndex; i < FAD_ENTRY_MAX_COUNT; i++)
|
||||||
{
|
{
|
||||||
if( fadTable[i].name[0] == '\0' )
|
if( fadTable[i].name[0] == '\0' )
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user