Skip to content

Commit

Permalink
Handle unknown titles correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
wiidev committed Jan 7, 2023
1 parent 3cc3643 commit 3ee8ef9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/Channels/channels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ void Channels::InternalGetNandChannelList(u32 type)
if (tid == 0x000100014c554c5aLL || tid == 0x00010001AF1BF516LL || tid == 0x0001000148415858LL)
strcpy(id, "JODI");

std::string TitleName(NandTitles.NameOf(tid));
const char *name = NandTitles.NameOf(tid);
std::string TitleName;
if (!name || *name == '\0')
TitleName.assign(id);
else
TitleName.assign(name);
TitleName.erase(0, TitleName.find_first_not_of(' '));

int s = NandChannels.size();
Expand Down

0 comments on commit 3ee8ef9

Please sign in to comment.