diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2021-04-22 14:39:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-22 14:39:44 -0400 |
| commit | 21ba65d4c3eb3dbbf196f8b70c61add08b491658 (patch) | |
| tree | e9a62ac979b22be8b437bb57c3bbe7f17ef49412 /ZAPD/Main.cpp | |
| parent | 301e17dadb5f6e9212ebcb704eb9cff75883002e (diff) | |
Warn unaccounted and name small zero-only unaccounted as padding (#118)
* warn unaccounted
Signed-off-by: Angie <angheloalf95@gmail.com>
* count the unaccounteds at the end of each file
Signed-off-by: Angie <angheloalf95@gmail.com>
* print the internal filename
Signed-off-by: Angie <angheloalf95@gmail.com>
* fix merge problem
* Add `-wu` flag
* Remove redundant code
* Add `possiblePadding` detection
* run format
Diffstat (limited to 'ZAPD/Main.cpp')
| -rw-r--r-- | ZAPD/Main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ZAPD/Main.cpp b/ZAPD/Main.cpp index 7bbf822..98d11f0 100644 --- a/ZAPD/Main.cpp +++ b/ZAPD/Main.cpp @@ -221,6 +221,10 @@ int NewMain(int argc, char* argv[]) { Globals::Instance->verbosity = (VerbosityLevel)strtol(argv[++i], NULL, 16); } + else if (arg == "-wu" || arg == "--warn-unaccounted") // Warn unaccounted + { + Globals::Instance->warnUnaccounted = true; + } } if (Globals::Instance->verbosity >= VERBOSITY_INFO) @@ -312,7 +316,7 @@ bool Parse(const std::string& xmlFilePath, const std::string& basePath, const st { if (string(child->Name()) == "File") { - ZFile* file = new ZFile(fileMode, child, basePath, outPath, "", false); + ZFile* file = new ZFile(fileMode, child, basePath, outPath, "", xmlFilePath, false); Globals::Instance->files.push_back(file); } } |
