mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 00:39:14 +00:00
big update
lots cleaned, added cia to cci conv, it 's called a block, separated reading from building, improved ncch keyx stuff, and basic verbose for keys, elf checking and romfs
This commit is contained in:
@@ -11,17 +11,14 @@ void CheckEvent(ctr_yaml_context *ctx);
|
||||
void BadYamlFormatting(void);
|
||||
|
||||
// Code
|
||||
int GetYamlSettings(user_settings *set)
|
||||
int GetRsfSettings(user_settings *set)
|
||||
{
|
||||
memset(&set->common.rsfSet,0,sizeof(rsf_settings));
|
||||
int ret = 0;
|
||||
if(set->common.rsfPath) {
|
||||
FILE *rsf = fopen(set->common.rsfPath,"rb");
|
||||
if(!rsf) {
|
||||
if(!AssertFile(set->common.rsfPath)) {
|
||||
fprintf(stderr,"[RSF ERROR] Failed to open %s\n",set->common.rsfPath);
|
||||
return FAILED_TO_OPEN_FILE;
|
||||
}
|
||||
fclose(rsf);
|
||||
ret = ParseSpecFile(&set->common.rsfSet,set->common.rsfPath, &set->dname);
|
||||
}
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user