summaryrefslogtreecommitdiff
path: root/platform/haiku/godot_haiku.cpp
blob: b4e5e5089189ca9d29b7606bcdde7e1c2e5e8781 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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();
}