|
OpenTTD Source
14.0-beta3
|
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"
23 void CocoaSetupAutoreleasePool();
24 void CocoaReleaseAutoreleasePool();
26 int CDECL
main(
int argc,
char *argv[])
31 CocoaSetupAutoreleasePool();
33 if (argc >= 2 && strncmp(argv[1],
"-psn", 4) == 0) {
42 signal(SIGPIPE, SIG_IGN);
46 CocoaReleaseAutoreleasePool();
int openttd_main(int argc, char *argv[])
Main entry point for this lovely game.
void StrMakeValidInPlace(char *str, const char *last, StringValidationSettings settings)
Scans the string for invalid characters and replaces then with a question mark '?' (if not ignored).
void SetRandomSeed(uint32_t seed)
(Re)set the state of the random number generators.
static void InitialiseCrashLog()
Initialiser for crash logs; do the appropriate things so crashes are handled by our crash handler ins...
int CDECL main(int argc, char *argv[])
And the main program (what else?)