10#include "../../stdafx.h"
11#include "../../openttd.h"
12#include "../../crashlog.h"
13#include "../../core/random_func.hpp"
14#include "../../string_func.h"
21#include "../../safeguards.h"
23void CocoaSetupAutoreleasePool();
24void CocoaReleaseAutoreleasePool();
26int CDECL main(
int argc,
char *argv[])
29 std::vector<std::string_view> params;
30 for (
int i = 0; i < argc; ++i) {
32 params.emplace_back(argv[i]);
35 CocoaSetupAutoreleasePool();
37 if (params.size() >= 2 && params[1].starts_with(
"-psn")) {
45 signal(SIGPIPE, SIG_IGN);
49 CocoaReleaseAutoreleasePool();
static void InitialiseCrashLog()
Initialiser for crash logs; do the appropriate things so crashes are handled by our crash handler ins...
Functions related to MacOS support.
int openttd_main(std::span< std::string_view > arguments)
Main entry point for this lovely game.
void SetRandomSeed(uint32_t seed)
(Re)set the state of the random number generators.
void StrMakeValidInPlace(char *str, StringValidationSettings settings)
Scans the string for invalid characters and replaces them with a question mark '?' (if not ignored).