[nstool] Update readme and help text to reflect present functionality.

This commit is contained in:
jakcron 2018-06-01 22:35:48 +08:00
parent 503318795a
commit 5a2f998cb9
2 changed files with 4 additions and 2 deletions

View file

@ -6,7 +6,7 @@ Tools & Libraries for NX (Nintendo Switch).
# Tools # Tools
* __nstool__ - read *.npdm, read/extract PartitionFS (PFS0|HFS0) blobs (including *.nsp), read/extract *.xci, read/extract *.nca, read *.cnmt * __nstool__ - read *.npdm, read/extract PartitionFS (PFS0|HFS0) blobs (including *.nsp), read/extract *.xci, read/extract *.nca, read *.cnmt, read *.nso
# Libraries # Libraries

View file

@ -39,7 +39,7 @@ void UserSettings::showHelp()
printf("\n General Options:\n"); printf("\n General Options:\n");
printf(" -d, --dev Use devkit keyset\n"); printf(" -d, --dev Use devkit keyset\n");
printf(" -k, --keyset Specify keyset file\n"); printf(" -k, --keyset Specify keyset file\n");
printf(" -t, --type Specify input file type [xci, pfs, romfs, nca, npdm, cnmt]\n"); printf(" -t, --type Specify input file type [xci, pfs, romfs, nca, npdm, cnmt, nso]\n");
printf(" -y, --verify Verify file\n"); printf(" -y, --verify Verify file\n");
printf(" -v, --verbose Verbose output\n"); printf(" -v, --verbose Verbose output\n");
printf(" -q, --quiet Minimal output\n"); printf(" -q, --quiet Minimal output\n");
@ -580,6 +580,8 @@ FileType UserSettings::getFileTypeFromString(const std::string& type_str)
type = FILE_NPDM; type = FILE_NPDM;
else if (str == "cnmt") else if (str == "cnmt")
type = FILE_CNMT; type = FILE_CNMT;
else if (str == "nso")
type = FILE_NSO;
else else
type = FILE_INVALID; type = FILE_INVALID;