mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-02 16:59:03 +00:00
Added unique ID range check in makerom. Removed -flto flag since this can cause problems.
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ SRC_DIR = . polarssl libyaml
|
||||
OBJS = $(foreach dir,$(SRC_DIR),$(subst .c,.o,$(wildcard $(dir)/*.c)))
|
||||
|
||||
# Compiler Settings
|
||||
CFLAGS = --std=c99 -O2 -flto -Wall -Wno-unused-value -Wno-unused-result -I.
|
||||
CFLAGS = --std=c99 -O2 -Wall -Wno-unused-value -Wno-unused-result -I.
|
||||
CC = gcc
|
||||
ifeq ($(OS),Windows_NT)
|
||||
#Windows Build CFG
|
||||
|
||||
@@ -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