summaryrefslogtreecommitdiff
path: root/platform/haiku/godot_haiku.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/haiku/godot_haiku.cpp')
-rw-r--r--platform/haiku/godot_haiku.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/platform/haiku/godot_haiku.cpp b/platform/haiku/godot_haiku.cpp
new file mode 100644
index 0000000000..b4e5e50891
--- /dev/null
+++ b/platform/haiku/godot_haiku.cpp
@@ -0,0 +1,19 @@
+#include "main/main.h"
+#include "os_haiku.h"
+
+int main(int argc, char* argv[]) {
+ OS_Haiku os;
+
+ Error error = Main::setup(argv[0], argc-1, &argv[1]);
+ if (error != OK) {
+ return 255;
+ }
+
+ if (Main::start()) {
+ os.run();
+ }
+
+ Main::cleanup();
+
+ return os.get_exit_code();
+}