mirror of
https://github.com/Relintai/pandemonium_engine_minimal.git
synced 2024-11-10 20:12:10 +01:00
21 lines
404 B
C++
21 lines
404 B
C++
|
|
/* pandemonium_server.cpp */
|
|
|
|
|
|
#include "main/main.h"
|
|
#include "os_server.h"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
OS_Server os;
|
|
|
|
Error err = Main::setup(argv[0], argc - 1, &argv[1]);
|
|
if (err != OK)
|
|
return 255;
|
|
|
|
if (Main::start())
|
|
os.main_run(); // it is actually the OS that decides how to run
|
|
Main::cleanup();
|
|
|
|
return os.get_exit_code();
|
|
}
|