Codechange: move main function(s) to separate files
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user