[makerom] Misc, added code comments.

This commit is contained in:
jakcron
2015-11-26 11:28:09 +08:00
parent 9d29a4ba62
commit c8023e202b
+3
View File
@@ -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;
}