summaryrefslogtreecommitdiff
path: root/tools/knarc/Source.cpp
diff options
context:
space:
mode:
authorAkira Akashi <rubenru09@aol.com>2021-05-31 23:58:57 +0100
committerGitHub <noreply@github.com>2021-05-31 23:58:57 +0100
commit40bf7584958428b8645256d5093143b7f0c6ebdd (patch)
tree5afeb1fde81971ba32843e7119c8d9c3c9f8eb56 /tools/knarc/Source.cpp
parent901807cd6f693ffa9941ddd167ef0ad9a5cf3d51 (diff)
parent6cffcf0ee5f4e04ce4e79f30645938e0b58f4650 (diff)
Merge pull request #394 from PikalaxALT/make_naix
Output NARC contents as C enums in .naix files
Diffstat (limited to 'tools/knarc/Source.cpp')
-rw-r--r--tools/knarc/Source.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/knarc/Source.cpp b/tools/knarc/Source.cpp
index d9a5cf83..587c8527 100644
--- a/tools/knarc/Source.cpp
+++ b/tools/knarc/Source.cpp
@@ -8,6 +8,7 @@ using namespace std;
bool debug = false;
bool pack_no_fnt = true;
+bool output_header = false;
void PrintError(NarcError error)
{
@@ -40,6 +41,7 @@ static inline void usage() {
cout << "\t-n\tBuild the filename table (default: discards filenames)" << endl;
cout << "\t-D/--debug\tPrint additional debug messages" << endl;
cout << "\t-h/--help\tPrint this message and exit" << endl;
+ cout << "\t-i\tOutput a .naix header" << endl;
}
int main(int argc, char* argv[])
@@ -104,6 +106,9 @@ int main(int argc, char* argv[])
else if (!strcmp(argv[i], "-n")) {
pack_no_fnt = false;
}
+ else if (!strcmp(argv[i], "-i")) {
+ output_header = true;
+ }
else {
usage();
cerr << "ERROR: Unrecognized argument: " << argv[i] << endl;