* Main entry point for non-Windows systems. Windows instead uses its own DLL proxy. */
| 18 | * Main entry point for non-Windows systems. Windows instead uses its own DLL proxy. |
| 19 | */ |
| 20 | int main(int argc, const char** argv) |
| 21 | { |
| 22 | int32_t rc = EXIT_SUCCESS; |
| 23 | auto runGame = CommandLineRun(argv, argc); |
| 24 | if (runGame == ExitCode::launch) |
| 25 | { |
| 26 | gOpenRCT2Headless = true; |
| 27 | gOpenRCT2NoGraphics = true; |
| 28 | |
| 29 | // Run OpenRCT2 with a plain context |
| 30 | auto context = CreateContext(); |
| 31 | rc = context->RunOpenRCT2(argc, argv); |
| 32 | } |
| 33 | else if (runGame == ExitCode::fail) |
| 34 | { |
| 35 | rc = EXIT_FAILURE; |
| 36 | } |
| 37 | return rc; |
| 38 | } |
nothing calls this directly
no test coverage detected