mirror of https://github.com/OpenRCT2/OpenRCT2.git
Re-implement scan-objects command line tool
This commit is contained in:
parent
50735c0f68
commit
c8169758d3
|
@ -23,6 +23,7 @@ extern "C"
|
||||||
#include "../config/Config.h"
|
#include "../config/Config.h"
|
||||||
#include "../platform/crash.h"
|
#include "../platform/crash.h"
|
||||||
#include "../platform/platform.h"
|
#include "../platform/platform.h"
|
||||||
|
#include "../localisation/language.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "../core/Console.hpp"
|
#include "../core/Console.hpp"
|
||||||
|
@ -32,6 +33,7 @@ extern "C"
|
||||||
#include "../network/network.h"
|
#include "../network/network.h"
|
||||||
#include "../object/ObjectRepository.h"
|
#include "../object/ObjectRepository.h"
|
||||||
#include "../OpenRCT2.h"
|
#include "../OpenRCT2.h"
|
||||||
|
#include "../PlatformEnvironment.h"
|
||||||
#include "../Version.h"
|
#include "../Version.h"
|
||||||
#include "CommandLine.hpp"
|
#include "CommandLine.hpp"
|
||||||
|
|
||||||
|
@ -397,9 +399,13 @@ static exitcode_t HandleCommandScanObjects(CommandLineArgEnumerator * enumerator
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// IPlatformEnvironment * env = OpenRCT2::SetupEnvironment();
|
auto env = OpenRCT2::CreatePlatformEnvironment();
|
||||||
// IObjectRepository * objectRepository = CreateObjectRepository(env);
|
|
||||||
// objectRepository->Construct();
|
// HACK: set gCurrentLanguage otherwise it be wrong for the index file
|
||||||
|
gCurrentLanguage = gConfigGeneral.language;
|
||||||
|
|
||||||
|
auto objectRepository = CreateObjectRepository(env);
|
||||||
|
objectRepository->Construct();
|
||||||
return EXITCODE_OK;
|
return EXITCODE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue