diff options
| author | Nicholas Estelami <NEstelami@users.noreply.github.com> | 2021-08-08 13:51:51 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-08 13:51:51 -0400 |
| commit | 0fb7568ec0d07ea414f8c3f286de352e9606d016 (patch) | |
| tree | deba58f4cf06f669aa14e85462055d63b4bc6e99 /ZAPD/Main.cpp | |
| parent | 82bd27604a4c8f8c1f01f9c2f54c87fab103c39f (diff) | |
Moved utility code into its own library (#162)
* Initial exporter implementation
* Updated to use static library.
* minor cleanup
* Cleaned things up a bit
* Fixed merge issues
* Minor commenting
* Added Begin and End functions, and removed HL stuff (to be turned into an exporter at a later date)
* Cleaned some stuff up
* Additional cleanup
* Removed some commented out code
* Fixed compilation issues
* Cleanup
* Fixed merge issues
* Got rid of unused windows.h includes
* Cleanup
* Fixed warning
* Removed additional redundancies
* Cleanup
* Fixed merge issues
* Fixed some compiler issues, added makefile for exportertest.
* Removed redundancies and clang formatted
* Made sure exportertest compiles with C++17
* Moved certain files into new "Utils" folder.
* GetExporterMap uses a reference now
* Minor fixes and updates.
* Moved utility code into its own library
* Fixed merge issues
* Fixed compilation issue
* Added missing classes
* Updated makefile
* Minor update
* Forgot to make an enum an 'enum class'
* Minor fix
* Few more adjustments
* Bug fix
* Another bug fix
* Bug fix again
* added comment
* New functions added for exporters
* Made certain fields public
Co-authored-by: Jack Walker <7463599+Jack-Walker@users.noreply.github.com>
Diffstat (limited to 'ZAPD/Main.cpp')
| -rw-r--r-- | ZAPD/Main.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/ZAPD/Main.cpp b/ZAPD/Main.cpp index 1ca939e..0c86ab6 100644 --- a/ZAPD/Main.cpp +++ b/ZAPD/Main.cpp @@ -1,7 +1,7 @@ #include "BuildInfo.h" -#include "Utils/Directory.h" -#include "Utils/File.h" -#include "Utils/Path.h" +#include <Utils/Directory.h> +#include <Utils/File.h> +#include <Utils/Path.h> #include "Globals.h" #include "Overlays/ZOverlay.h" #include "ZAnimation.h" @@ -360,6 +360,11 @@ bool Parse(const fs::path& xmlFilePath, const fs::path& basePath, ZFileMode file } } + ExporterSet* exporterSet = Globals::Instance->GetExporterSet(); + + if (exporterSet != nullptr && exporterSet->beginXMLFunc != nullptr) + exporterSet->beginXMLFunc(); + for (ZFile* file : Globals::Instance->files) { if (fileMode == ZFileMode::BuildSourceFile) @@ -368,6 +373,9 @@ bool Parse(const fs::path& xmlFilePath, const fs::path& basePath, ZFileMode file file->ExtractResources(); } + if (exporterSet != nullptr && exporterSet->endXMLFunc != nullptr) + exporterSet->endXMLFunc(); + // All done, free files for (ZFile* file : Globals::Instance->files) delete file; |
