Codechange: move main function(s) to separate files

This commit is contained in:
Rubidium
2023-04-10 17:33:18 +02:00
committed by rubidium42
parent 7b0797d1cd
commit 9e89eb5726
11 changed files with 209 additions and 128 deletions

View File

@@ -12,8 +12,6 @@
#include "../../gui.h"
#include "../../fileio_func.h"
#include "../../fios.h"
#include "../../openttd.h"
#include "../../core/random_func.hpp"
#include "../../string_func.h"
#include "../../textbuf_gui.h"
#include "../../thread.h"
@@ -169,16 +167,6 @@ void ShowOSErrorBox(const char *buf, bool system)
WinTerminate(hab);
}
int CDECL main(int argc, char *argv[])
{
SetRandomSeed(time(nullptr));
/* Make sure our arguments contain only valid UTF-8 characters. */
for (int i = 0; i < argc; i++) StrMakeValidInPlace(argv[i]);
return openttd_main(argc, argv);
}
bool GetClipboardContents(char *buffer, const char *last)
{
/* XXX -- Currently no clipboard support implemented with GCC */