mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
parent
2a4680035f
commit
7f7054049d
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue