mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-02 16:59:03 +00:00
[makerom] Warn user for not specifying any services, instead of erroring out.
This commit is contained in:
+2
-1
@@ -226,4 +226,5 @@ pip-log.txt
|
||||
*.cia
|
||||
|
||||
#exec
|
||||
*.exe
|
||||
*.exe
|
||||
*.db
|
||||
|
||||
+6
-2
@@ -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)
|
||||
{
|
||||
|
||||
@@ -245,3 +245,4 @@ int GetSaveDataSizeFromString(u64 *out, char *string, char *moduleName);
|
||||
int GetRemasterVersion_rsf(u16 *RemasterVersion, user_settings *usrset);
|
||||
|
||||
void ErrorParamNotFound(char *string);
|
||||
void WarnParamNotFound(char *string);
|
||||
Reference in New Issue
Block a user