makerom: added n3ds core2 access flag

This commit is contained in:
jakcron
2015-09-28 22:48:31 +08:00
parent af7789f7e8
commit 91cdb199f9
4 changed files with 5 additions and 0 deletions
+2
View File
@@ -1014,6 +1014,8 @@ int SetARM11KernelDescOtherCapabilities(ARM11KernelCapabilityDescriptor *desc, r
otherCapabilities |= othcap_RUNNABLE_ON_SLEEP;
if(rsf->AccessControlInfo.SpecialMemoryArrange)
otherCapabilities |= othcap_SPECIAL_MEMORY_ARRANGE;
if (rsf->AccessControlInfo.CanAccessCore2)
otherCapabilities |= othcap_CAN_ACCESS_CORE2;
if(rsf->AccessControlInfo.MemoryType){
if(strcasecmp(rsf->AccessControlInfo.MemoryType,"application") == 0)
+1
View File
@@ -45,6 +45,7 @@ typedef enum
othcap_CAN_SHARE_DEVICE_MEMORY = (1 << 6),
othcap_RUNNABLE_ON_SLEEP = (1 << 7),
othcap_SPECIAL_MEMORY_ARRANGE = (1 << 12),
othcap_CAN_ACCESS_CORE2 = (1 << 13),
} other_capabilities_flags;
typedef enum
+1
View File
@@ -102,6 +102,7 @@ void GET_AccessControlInfo(ctr_yaml_context *ctx, rsf_settings *rsf)
else if(cmpYamlValue("UseOtherVariationSaveData",ctx)) SetBoolYAMLValue(&rsf->AccessControlInfo.UseOtherVariationSaveData,"UseOtherVariationSaveData",ctx);
else if(cmpYamlValue("RunnableOnSleep",ctx)) SetBoolYAMLValue(&rsf->AccessControlInfo.RunnableOnSleep,"RunnableOnSleep",ctx);
else if(cmpYamlValue("SpecialMemoryArrange",ctx)) SetBoolYAMLValue(&rsf->AccessControlInfo.SpecialMemoryArrange,"SpecialMemoryArrange",ctx);
else if(cmpYamlValue("CanAccessCore2", ctx)) SetBoolYAMLValue(&rsf->AccessControlInfo.CanAccessCore2, "CanAccessCore2", ctx);
else if(cmpYamlValue("UseExtSaveData", ctx)) SetBoolYAMLValue(&rsf->AccessControlInfo.UseExtSaveData, "UseExtSaveData", ctx);
else if(cmpYamlValue("EnableL2Cache", ctx)) SetBoolYAMLValue(&rsf->AccessControlInfo.EnableL2Cache, "EnableL2Cache", ctx);
+1
View File
@@ -86,6 +86,7 @@ typedef struct
bool UseOtherVariationSaveData;
bool RunnableOnSleep;
bool SpecialMemoryArrange;
bool CanAccessCore2;
bool UseExtSaveData;
bool EnableL2Cache;