[makerom] Warn user for not specifying any services, instead of erroring out.

This commit is contained in:
jakcron
2016-06-27 15:59:03 +08:00
parent 01cd4cba7b
commit b85775479b
3 changed files with 9 additions and 3 deletions
+6 -2
View File
@@ -617,8 +617,7 @@ int SetARM11ServiceAccessControl(exhdr_ARM11SystemLocalCapabilities *arm11, rsf_
}
}
else{
ErrorParamNotFound("AccessControlInfo/ServiceAccessControl");
return EXHDR_BAD_RSF_OPT;
WarnParamNotFound("AccessControlInfo/ServiceAccessControl");
}
return 0;
}
@@ -1164,6 +1163,11 @@ void ErrorParamNotFound(char *string)
fprintf(stderr,"[EXHEADER ERROR] Parameter Not Found: \"%s\"\n",string);
}
void WarnParamNotFound(char *string)
{
fprintf(stderr, "[EXHEADER WARNING] Parameter Not Found: \"%s\"\n", string);
}
/* ExHeader Binary Print Functions */
void exhdr_Print_ServiceAccessControl(extended_hdr *hdr)
{