From 5a2f998cb98cb9d64e1312dc4f2e7429973857a1 Mon Sep 17 00:00:00 2001 From: jakcron Date: Fri, 1 Jun 2018 22:35:48 +0800 Subject: [PATCH] [nstool] Update readme and help text to reflect present functionality. --- README.md | 2 +- programs/nstool/source/UserSettings.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a21d827..7cff58d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Tools & Libraries for NX (Nintendo Switch). # 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 diff --git a/programs/nstool/source/UserSettings.cpp b/programs/nstool/source/UserSettings.cpp index 8b00be9..7fc07e4 100644 --- a/programs/nstool/source/UserSettings.cpp +++ b/programs/nstool/source/UserSettings.cpp @@ -39,7 +39,7 @@ void UserSettings::showHelp() printf("\n General Options:\n"); printf(" -d, --dev Use devkit keyset\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(" -v, --verbose Verbose output\n"); printf(" -q, --quiet Minimal output\n"); @@ -580,6 +580,8 @@ FileType UserSettings::getFileTypeFromString(const std::string& type_str) type = FILE_NPDM; else if (str == "cnmt") type = FILE_CNMT; + else if (str == "nso") + type = FILE_NSO; else type = FILE_INVALID;