summaryrefslogtreecommitdiffhomepage
path: root/MagicEx/src/3ds2mag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'MagicEx/src/3ds2mag.cpp')
-rw-r--r--MagicEx/src/3ds2mag.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/MagicEx/src/3ds2mag.cpp b/MagicEx/src/3ds2mag.cpp
new file mode 100644
index 0000000..3bf9460
--- /dev/null
+++ b/MagicEx/src/3ds2mag.cpp
@@ -0,0 +1,23 @@
+/* Starshatter: The Open Source Project
+ Copyright (c) 2021-2024, Starshatter: The Open Source Project Contributors
+ Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors
+ Copyright (c) 1997-2006, Destroyer Studios LLC.
+*/
+
+#include <string>
+
+#include <ModelFile3DS.h>
+#include <ModelFileMAG.h>
+
+#include "convert.h"
+
+
+int
+main(int argc, char* argv[])
+{
+ if (argc < 2)
+ return 2;
+ const std::string input {argv[1]};
+ const auto output = input + ".mag";
+ return starshatter::convert<ModelFile3DS, ModelFileMAG>(input, output);
+}