summaryrefslogtreecommitdiff
path: root/ExporterTest/Main.cpp
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-10-01 22:19:47 -0300
committerGitHub <noreply@github.com>2021-10-01 21:19:47 -0400
commit6b06266eb8d35a7865aa1f942ecbe393e7cde740 (patch)
tree6b23ec1617f1ae76f49079ccc9c93c7f4d06eff3 /ExporterTest/Main.cpp
parent26b00a2431a70ff190a2b22ee1faf77afa75a034 (diff)
Add `--static` flag (#193)
* remove static from every extracted asset * fix makefile * Move a bunch of code to Declaration * make static enablalble * fix texture static * clean up * minor fixes * Format * add small docs * fix * add table * add note in the readme * typo * maybe_unused * Add warning to ZSymbol * format * fix
Diffstat (limited to 'ExporterTest/Main.cpp')
-rw-r--r--ExporterTest/Main.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/ExporterTest/Main.cpp b/ExporterTest/Main.cpp
index 1fb6bea..ee47cbf 100644
--- a/ExporterTest/Main.cpp
+++ b/ExporterTest/Main.cpp
@@ -1,7 +1,7 @@
-#include <TextureExporter.h>
-#include <RoomExporter.h>
#include <CollisionExporter.h>
#include <Globals.h>
+#include <RoomExporter.h>
+#include <TextureExporter.h>
enum class ExporterFileMode
{
@@ -20,17 +20,15 @@ static void ExporterParseFileMode(std::string buildMode, ZFileMode& fileMode)
fileMode = (ZFileMode)ExporterFileMode::ModeExample3;
}
-static void ExporterParseArgs([[maybe_unused]]int argc, char* argv[], int& i)
+static void ExporterParseArgs([[maybe_unused]] int argc, char* argv[], int& i)
{
std::string arg = argv[i];
if (arg == "--do-x")
{
-
}
else if (arg == "--do-y")
{
-
}
}
@@ -61,7 +59,8 @@ static void ExporterFileEnd(ZFile* file)
static void ImportExporters()
{
// In this example we set up a new exporter called "EXAMPLE".
- // By running ZAPD with the argument -se EXAMPLE, we tell it that we want to use this exporter for our resources.
+ // By running ZAPD with the argument -se EXAMPLE, we tell it that we want to use this exporter
+ // for our resources.
ExporterSet* exporterSet = new ExporterSet();
exporterSet->processFileModeFunc = ExporterProcessFileMode;
exporterSet->parseFileModeFunc = ExporterParseFileMode;
@@ -75,5 +74,6 @@ static void ImportExporters()
Globals::AddExporter("EXAMPLE", exporterSet);
}
-// When ZAPD starts up, it will automatically call the below function, which in turn sets up our exporters.
+// When ZAPD starts up, it will automatically call the below function, which in turn sets up our
+// exporters.
REGISTER_EXPORTER(ImportExporters) \ No newline at end of file