[nstool] Renamed 'nstool.h' to 'common.h'

This commit is contained in:
jakcron 2018-09-13 19:06:48 +08:00
parent dd1a97aec2
commit 1ef566eb80
18 changed files with 24 additions and 22 deletions

View file

@ -6,7 +6,7 @@
#include "NacpProcess.h"
#include "RomfsProcess.h"
#include "nstool.h"
#include "common.h"
class AssetProcess
{

View file

@ -4,7 +4,7 @@
#include <fnd/IFile.h>
#include <nn/hac/ContentMetaBinary.h>
#include "nstool.h"
#include "common.h"
class CnmtProcess
{

View file

@ -7,7 +7,7 @@
#include <nn/pki/CertificateBody.h>
#include <nn/es/TicketBody_V2.h>
#include "KeyConfiguration.h"
#include "nstool.h"
#include "common.h"
class EsTikProcess
{

View file

@ -1,4 +1,4 @@
#include "nstool.h"
#include "common.h"
#include "HashTreeWrappedIFile.h"
#include "OffsetAdjustedIFile.h"

View file

@ -4,7 +4,7 @@
#include <fnd/IFile.h>
#include <nn/hac/ApplicationControlPropertyBinary.h>
#include "nstool.h"
#include "common.h"
class NacpProcess
{

View file

@ -7,7 +7,7 @@
#include "KeyConfiguration.h"
#include "nstool.h"
#include "common.h"
class NcaProcess
{

View file

@ -5,7 +5,7 @@
#include <nn/hac/NpdmBinary.h>
#include "KeyConfiguration.h"
#include "nstool.h"
#include "common.h"
class NpdmProcess
{

View file

@ -7,7 +7,7 @@
#include <nn/hac/NroHeader.h>
#include "AssetProcess.h"
#include "nstool.h"
#include "common.h"
#include "RoMetadataProcess.h"
class NroProcess

View file

@ -6,7 +6,7 @@
#include <nn/hac/npdm.h>
#include <nn/hac/NsoHeader.h>
#include "nstool.h"
#include "common.h"
#include "RoMetadataProcess.h"
class NsoProcess

View file

@ -4,7 +4,7 @@
#include <fnd/IFile.h>
#include <nn/hac/PfsHeader.h>
#include "nstool.h"
#include "common.h"
class PfsProcess
{

View file

@ -7,7 +7,7 @@
#include <nn/pki/SignedData.h>
#include <nn/pki/CertificateBody.h>
#include "KeyConfiguration.h"
#include "nstool.h"
#include "common.h"
class PkiCertProcess
{

View file

@ -6,7 +6,7 @@
#include <nn/hac/npdm.h>
#include "nstool.h"
#include "common.h"
#include "SdkApiString.h"
#include "ElfSymbolParser.h"

View file

@ -6,7 +6,7 @@
#include <fnd/List.h>
#include <nn/hac/romfs.h>
#include "nstool.h"
#include "common.h"
class RomfsProcess
{

View file

@ -45,10 +45,10 @@ void UserSettings::parseCmdArgs(const std::vector<std::string>& arg_list)
void UserSettings::showHelp()
{
printf("NSTool v%d.%d.%d (C) %s\n", VER_MAJOR, VER_MINOR, VER_PATCH, AUTHORS);
printf("%s v%d.%d.%d (C) %s\n", APP_NAME, VER_MAJOR, VER_MINOR, VER_PATCH, AUTHORS);
printf("Built: %s %s\n\n", __TIME__, __DATE__);
printf("Usage: nstool [options... ] <file>\n");
printf("Usage: %s [options... ] <file>\n", BIN_NAME);
printf("\n General Options:\n");
printf(" -d, --dev Use devkit keyset.\n");
printf(" -k, --keyset Specify keyset file.\n");
@ -59,18 +59,18 @@ void UserSettings::showHelp()
printf(" --showlayout Show layout metadata.\n");
printf(" -v, --verbose Verbose output.\n");
printf("\n XCI (GameCard Image)\n");
printf(" nstool [--listfs] [--update <dir> --logo <dir> --normal <dir> --secure <dir>] <.xci file>\n");
printf(" %s [--listfs] [--update <dir> --logo <dir> --normal <dir> --secure <dir>] <.xci file>\n", BIN_NAME);
printf(" --listfs Print file system in embedded partitions.\n");
printf(" --update Extract \"update\" partition to directory.\n");
printf(" --logo Extract \"logo\" partition to directory.\n");
printf(" --normal Extract \"normal\" partition to directory.\n");
printf(" --secure Extract \"secure\" partition to directory.\n");
printf("\n PFS0/HFS0 (PartitionFs), RomFs, NSP (Ninendo Submission Package)\n");
printf(" nstool [--listfs] [--fsdir <dir>] <file>\n");
printf(" %s [--listfs] [--fsdir <dir>] <file>\n", BIN_NAME);
printf(" --listfs Print file system.\n");
printf(" --fsdir Extract file system to directory.\n");
printf("\n NCA (Nintendo Content Archive)\n");
printf(" nstool [--listfs] [--bodykey <key> --titlekey <key>] [--part0 <dir> ...] <.nca file>\n");
printf(" %s [--listfs] [--bodykey <key> --titlekey <key>] [--part0 <dir> ...] <.nca file>\n", BIN_NAME);
printf(" --listfs Print file system in embedded partitions.\n");
printf(" --titlekey Specify title key extracted from ticket.\n");
printf(" --bodykey Specify body encryption key.\n");
@ -81,12 +81,12 @@ void UserSettings::showHelp()
printf(" --part2 Extract \"partition 2\" to directory.\n");
printf(" --part3 Extract \"partition 3\" to directory.\n");
printf("\n NSO (Nintendo Software Object), NRO (Nintendo Relocatable Object)\n");
printf(" nstool [--listapi --listsym] [--insttype <inst. type>] <file>\n");
printf(" %s [--listapi --listsym] [--insttype <inst. type>] <file>\n", BIN_NAME);
printf(" --listapi Print SDK API List.\n");
printf(" --listsym Print Code Symbols.\n");
printf(" --insttype Specify instruction type [64bit|32bit] (64bit is assumed).\n");
printf("\n ASET (Homebrew Asset Blob)\n");
printf(" nstool [--listfs] [--icon <file> --nacp <file> --fsdir <dir>] <file>\n");
printf(" %s [--listfs] [--icon <file> --nacp <file> --fsdir <dir>] <file>\n", BIN_NAME);
printf(" --listfs Print filesystem in embedded RomFS partition.\n");
printf(" --icon Extract icon partition to file.\n");
printf(" --nacp Extract NACP partition to file.\n");

View file

@ -7,7 +7,7 @@
#include <nn/pki/SignedData.h>
#include <nn/pki/CertificateBody.h>
#include <nn/hac/npdm.h>
#include "nstool.h"
#include "common.h"
#include "KeyConfiguration.h"
class UserSettings

View file

@ -7,7 +7,7 @@
#include "KeyConfiguration.h"
#include "PfsProcess.h"
#include "nstool.h"
#include "common.h"
class XciProcess
{

View file

@ -1,4 +1,6 @@
#pragma once
#define APP_NAME "NSTool"
#define BIN_NAME "nstool"
#define VER_MAJOR 1
#define VER_MINOR 0
#define VER_PATCH 3