diff options
author | Rémi Calixte <remicalixte.rmc@gmail.com> | 2021-06-01 20:03:16 +0200 |
---|---|---|
committer | Rémi Calixte <remicalixte.rmc@gmail.com> | 2021-06-01 20:03:16 +0200 |
commit | d6f348ce384723cecd3e1fe0f9db572f252cc6fa (patch) | |
tree | dc033bd9e39a01b37896295fa4e29549f566c214 /tools/knarc/Source.cpp | |
parent | 8e4dda14ff3f4390af69d52b928f987f3618e9a1 (diff) | |
parent | f84ce2d813902c7c4bdd6db34b40152ddf9cadde (diff) |
Merge branch 'master' into unk_0200BB14
Diffstat (limited to 'tools/knarc/Source.cpp')
-rw-r--r-- | tools/knarc/Source.cpp | 5 |
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; |