Read commandline before initialising other features

This allows setting options that may affect future feature detection,
but also allows for configuring verbosity levels early.
This commit is contained in:
Michał Janiszewski 2018-01-01 23:51:43 +01:00
parent 2a4680035f
commit 7f7054049d
2 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ using namespace OpenRCT2;
*/
int main(int argc, const char * * argv)
{
core_init();
int runGame = cmdline_run(argv, argc);
core_init();
if (runGame == 1)
{
gOpenRCT2Headless = true;

View File

@ -38,8 +38,8 @@ int NormalisedMain(int argc, const char * * argv)
int main(int argc, const char * * argv)
#endif
{
int runGame = cmdline_run(argv, argc);
core_init();
int runGame = cmdline_run((const char * *)argv, argc);
if (runGame == 1)
{
if (gOpenRCT2Headless)