mirror of
https://github.com/jakcron/nstool
synced 2024-11-14 17:56:39 +00:00
[nstool] Made a disctinction between NSP and PFS, for future use.
This commit is contained in:
parent
9ee1033e31
commit
24437935e7
3 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ static const size_t kNcaKeakNum = nx::nca::kKeyAreaEncryptionKeyNum;
|
|||
enum FileType
|
||||
{
|
||||
FILE_XCI,
|
||||
FILE_NSP,
|
||||
FILE_PARTITIONFS,
|
||||
FILE_ROMFS,
|
||||
FILE_NCA,
|
||||
|
|
Loading…
Reference in a new issue