mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-05 08:49:03 +00:00
[makerom] Misc, added code comments.
This commit is contained in:
@@ -697,13 +697,16 @@ int SetArgument(int argc, int i, char *argv[], user_settings *set)
|
|||||||
|
|
||||||
int CheckArgumentCombination(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) {
|
if (set->common.contentPath[0] == NULL) {
|
||||||
set->ncch.buildNcch0 = true;
|
set->ncch.buildNcch0 = true;
|
||||||
|
// A CXI can contain elements of a CFA, but not the other way round.
|
||||||
if (set->ncch.ncchType & CXI)
|
if (set->ncch.ncchType & CXI)
|
||||||
set->ncch.ncchType = CXI;
|
set->ncch.ncchType = CXI;
|
||||||
else
|
else
|
||||||
set->ncch.ncchType = CFA;
|
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)
|
if (set->common.outFormat == NCCH)
|
||||||
set->common.outFormat = set->ncch.ncchType;
|
set->common.outFormat = set->ncch.ncchType;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user