From c8023e202b1e8762b8a4419f510c81332f48e3ef Mon Sep 17 00:00:00 2001 From: jakcron Date: Thu, 26 Nov 2015 11:28:09 +0800 Subject: [PATCH] [makerom] Misc, added code comments. --- makerom/user_settings.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makerom/user_settings.c b/makerom/user_settings.c index c265568..8eada63 100644 --- a/makerom/user_settings.c +++ b/makerom/user_settings.c @@ -697,13 +697,16 @@ int SetArgument(int argc, int i, char *argv[], user_settings *set) int CheckArgumentCombination(user_settings *set) { + // If content 0 was not specified, we must build it (a NCCH file) if (set->common.contentPath[0] == NULL) { set->ncch.buildNcch0 = true; + // A CXI can contain elements of a CFA, but not the other way round. if (set->ncch.ncchType & CXI) set->ncch.ncchType = CXI; else set->ncch.ncchType = CFA; + // If we are creating a NCCH file (as opposed to CIA/CCI), specify which NCCH type is the output format if (set->common.outFormat == NCCH) set->common.outFormat = set->ncch.ncchType; }