21int CDECL main(
int argc,
char *argv[])
24 std::vector<std::string_view> params;
25 for (
int i = 0; i < argc; ++i) {
27 params.emplace_back(argv[i]);
34 signal(SIGPIPE, SIG_IGN);
static void InitialiseCrashLog()
Initialiser for crash logs; do the appropriate things so crashes are handled by our crash handler ins...
Functions to be called to log a crash.
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.
Pseudo random number generator.
A number of safeguards to prevent using unsafe methods.
Definition of base types and functions in a cross-platform compatible way.
void StrMakeValidInPlace(char *str, StringValidationSettings settings)
Scans the string for invalid characters and replaces them with a question mark '?
Functions related to low-level strings.