2015-05-24 20:22:51 +00:00
|
|
|
#include "main/main.h"
|
|
|
|
#include "os_haiku.h"
|
|
|
|
|
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
OS_Haiku os;
|
2016-03-08 23:00:52 +00:00
|
|
|
|
2015-05-24 20:22:51 +00:00
|
|
|
Error error = Main::setup(argv[0], argc-1, &argv[1]);
|
|
|
|
if (error != OK) {
|
|
|
|
return 255;
|
|
|
|
}
|
2016-03-08 23:00:52 +00:00
|
|
|
|
2015-05-24 20:22:51 +00:00
|
|
|
if (Main::start()) {
|
|
|
|
os.run();
|
|
|
|
}
|
2016-03-08 23:00:52 +00:00
|
|
|
|
2015-05-24 20:22:51 +00:00
|
|
|
Main::cleanup();
|
2016-03-08 23:00:52 +00:00
|
|
|
|
2015-05-24 20:22:51 +00:00
|
|
|
return os.get_exit_code();
|
|
|
|
}
|