mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 03:09:15 +01:00
Handle unknown titles correctly
This commit is contained in:
parent
3cc3643dab
commit
3ee8ef9e0a
@ -129,7 +129,12 @@ void Channels::InternalGetNandChannelList(u32 type)
|
|||||||
if (tid == 0x000100014c554c5aLL || tid == 0x00010001AF1BF516LL || tid == 0x0001000148415858LL)
|
if (tid == 0x000100014c554c5aLL || tid == 0x00010001AF1BF516LL || tid == 0x0001000148415858LL)
|
||||||
strcpy(id, "JODI");
|
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(' '));
|
TitleName.erase(0, TitleName.find_first_not_of(' '));
|
||||||
|
|
||||||
int s = NandChannels.size();
|
int s = NandChannels.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user