[nstool] Made a disctinction between NSP and PFS, for future use.

This commit is contained in:
jakcron 2018-05-22 10:30:31 +08:00
parent 9ee1033e31
commit 24437935e7
3 changed files with 6 additions and 4 deletions

View file

@ -565,10 +565,11 @@ FileType UserSettings::getFileTypeFromString(const std::string& type_str)
FileType type;
if (str == "xci")
type = FILE_XCI;
else if (str == "partitionfs" \
else if (str == "nsp") // may become its own
type = FILE_NSP;
else if (str == "partitionfs" || str == "hashedpartitionfs" \
|| str == "pfs" || str == "pfs0" \
|| str == "hfs" || str == "hfs0" \
|| str == "nsp")
|| str == "hfs" || str == "hfs0")
type = FILE_PARTITIONFS;
else if (str == "romfs")
type = FILE_ROMFS;

View file

@ -38,7 +38,7 @@ int main(int argc, char** argv)
xci.process();
}
else if (user_set.getFileType() == FILE_PARTITIONFS)
else if (user_set.getFileType() == FILE_PARTITIONFS || user_set.getFileType() == FILE_NSP)
{
PfsProcess pfs;

View file

@ -13,6 +13,7 @@ static const size_t kNcaKeakNum = nx::nca::kKeyAreaEncryptionKeyNum;
enum FileType
{
FILE_XCI,
FILE_NSP,
FILE_PARTITIONFS,
FILE_ROMFS,
FILE_NCA,