mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-04 08:49:03 +00:00
Added unique ID range check in makerom. Removed -flto flag since this can cause problems.
This commit is contained in:
@@ -61,6 +61,11 @@ int GetProgramID(u64 *dest, rsf_settings *rsf, bool IsForExheader)
|
||||
else
|
||||
uniqueId = DEFAULT_UNIQUE_ID;
|
||||
|
||||
if(uniqueId & 0xFFF00000u){
|
||||
fprintf(stderr,"[ID ERROR] Unique ID is out of range.\n");
|
||||
return PID_BAD_RSF_SET;
|
||||
}
|
||||
|
||||
// Getting Variation
|
||||
if(SetTitleVariation(&variation,category,rsf) == PID_INVALID_VARIATION)
|
||||
return PID_BAD_RSF_SET;
|
||||
|
||||
Reference in New Issue
Block a user