[makerom] Added Homebrew NCCH Logo (credit: yellows8). Accessible via "BasicInfo/Logo: Homebrew"

This commit is contained in:
jakcron
2015-11-26 11:39:23 +08:00
parent c8023e202b
commit 085e37296e
2 changed files with 14 additions and 0 deletions
+9
View File
@@ -338,6 +338,15 @@ int ImportLogo(ncch_settings *set)
}
memcpy(set->sections.logo.buffer,iQue_without_ISBN_LZ,0x2000);
}
else if (strcasecmp(set->rsfSet->BasicInfo.Logo, "homebrew") == 0) {
set->sections.logo.size = 0x2000;
set->sections.logo.buffer = malloc(set->sections.logo.size);
if (!set->sections.logo.buffer) {
fprintf(stderr, "[NCCH ERROR] Not enough memory\n");
return MEM_ERROR;
}
memcpy(set->sections.logo.buffer, Homebrew_LZ, 0x2000);
}
else if(strcasecmp(set->rsfSet->BasicInfo.Logo,"none") != 0){
fprintf(stderr,"[NCCH ERROR] Invalid logo name\n");
return NCCH_BAD_RSF_SET;
File diff suppressed because one or more lines are too long