mirror of
https://github.com/jakcron/nstool
synced 2024-11-22 21:49:30 +00:00
[nstool] Start CmntProcess
This commit is contained in:
parent
a02ba43292
commit
b36875661e
6 changed files with 21 additions and 8 deletions
|
@ -163,6 +163,7 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="source\AesCtrWrappedIFile.h" />
|
||||
<ClInclude Include="source\CmntProcess.h" />
|
||||
<ClInclude Include="source\CopiedIFile.h" />
|
||||
<ClInclude Include="source\NcaProcess.h" />
|
||||
<ClInclude Include="source\NpdmProcess.h" />
|
||||
|
@ -176,6 +177,7 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="source\AesCtrWrappedIFile.cpp" />
|
||||
<ClCompile Include="source\CmntProcess.cpp" />
|
||||
<ClCompile Include="source\main.cpp" />
|
||||
<ClCompile Include="source\NcaProcess.cpp" />
|
||||
<ClCompile Include="source\NpdmProcess.cpp" />
|
||||
|
|
|
@ -48,6 +48,9 @@
|
|||
<ClInclude Include="source\OffsetAdjustedIFile.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="source\CmntProcess.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="source\main.cpp">
|
||||
|
@ -77,6 +80,9 @@
|
|||
<ClCompile Include="source\OffsetAdjustedIFile.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="source\CmntProcess.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="makefile" />
|
||||
|
|
1
programs/nstool/source/CmntProcess.cpp
Normal file
1
programs/nstool/source/CmntProcess.cpp
Normal file
|
@ -0,0 +1 @@
|
|||
#include "CmntProcess.h"
|
1
programs/nstool/source/CmntProcess.h
Normal file
1
programs/nstool/source/CmntProcess.h
Normal file
|
@ -0,0 +1 @@
|
|||
#pragma once
|
|
@ -38,7 +38,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]\n");
|
||||
printf(" -t, --type Specify input file type [xci, pfs, romfs, nca, npdm, cmnt]\n");
|
||||
printf(" -y, --verify Verify file\n");
|
||||
printf(" -v, --verbose Verbose output\n");
|
||||
printf(" -q, --quiet Minimal output\n");
|
||||
|
@ -565,7 +565,7 @@ FileType UserSettings::getFileTypeFromString(const std::string& type_str)
|
|||
FileType type;
|
||||
if (str == "xci")
|
||||
type = FILE_XCI;
|
||||
else if ( str == "partitionfs" \
|
||||
else if (str == "partitionfs" \
|
||||
|| str == "pfs" || str == "pfs0" \
|
||||
|| str == "hfs" || str == "hfs0" \
|
||||
|| str == "nsp")
|
||||
|
@ -576,6 +576,8 @@ FileType UserSettings::getFileTypeFromString(const std::string& type_str)
|
|||
type = FILE_NCA;
|
||||
else if (str == "npdm")
|
||||
type = FILE_NPDM;
|
||||
else if (str == "cmnt")
|
||||
type = FILE_CMNT;
|
||||
else
|
||||
type = FILE_INVALID;
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ enum FileType
|
|||
FILE_ROMFS,
|
||||
FILE_NCA,
|
||||
FILE_NPDM,
|
||||
FILE_CMNT,
|
||||
FILE_INVALID = -1,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue