[makerom] Relaxed RSF requirements.

This commit is contained in:
jakcron
2015-10-09 21:35:54 +08:00
parent d5f0d2c096
commit aa694f20f9
3 changed files with 17 additions and 19 deletions
+5 -11
View File
@@ -4,6 +4,7 @@
#include "accessdesc.h"
#include "titleid.h"
const char *DEFAULT_EXHEADER_NAME = "CtrApp";
/* Prototypes */
void free_ExHeaderSettings(exheader_settings *exhdrset);
@@ -189,17 +190,10 @@ finish:
int get_ExHeaderCodeSetInfo(exhdr_CodeSetInfo *CodeSetInfo, rsf_settings *rsf)
{
/* Name */
if(rsf->BasicInfo.Title){
//if(strlen(rsf->BasicInfo.Title) > 8){
// fprintf(stderr,"[EXHEADER ERROR] Parameter Too Long \"BasicInfo/Title\"\n");
// return EXHDR_BAD_RSF_OPT;
//}
strncpy((char*)CodeSetInfo->name,rsf->BasicInfo.Title,8);
}
else{
ErrorParamNotFound("BasicInfo/Title");
return EXHDR_BAD_RSF_OPT;
}
if (rsf->BasicInfo.Title)
strncpy((char*)CodeSetInfo->name, rsf->BasicInfo.Title, 8);
else
strncpy((char*)CodeSetInfo->name, DEFAULT_EXHEADER_NAME, 8);
/* Stack Size */
if(rsf->SystemControlInfo.StackSize)