decomp(sd-select): align the traversal title declaration lifetime (#1066)

This commit was merged in pull request #1066.
This commit is contained in:
coah
2026-10-03 01:16:20 -05:00
committed by GitHub
parent 1b5b2da635
commit 32be36cb4e
2 changed files with 61 additions and 1 deletions

View File

@@ -1406,10 +1406,10 @@ namespace ipl {
getCurrentTitleUsage(&bytes, &blocks);
*titleCount = 0;
ESTitleId titleId;
for (int page = MAX_CHANNEL_PAGE - 1; page >= 0; --page) {
for (int order = 0; order < MAX_CHANNEL_INDEX; ++order) {
int channelIndex = channelOrder[order];
ESTitleId titleId;
const channel::SEntry& channelInfo =
System::getChannelManager()->mChannels[page][channelIndex];
if (channelInfo.loadedBnr) {