17 const std::string& assets_path,
18 const std::vector<std::string>& arguments,
19 const std::string& aot_library_path) {
21 std::cerr <<
"Cannot run an already running engine. Create a new instance "
22 "or call ShutDown first."
28 c_engine_properties.
assets_path = assets_path.c_str();
31 std::vector<const char*> engine_switches;
33 arguments.begin(), arguments.end(), std::back_inserter(engine_switches),
34 [](
const std::string& arg) ->
const char* { return arg.c_str(); });
35 if (!engine_switches.empty()) {
36 c_engine_properties.
switches = &engine_switches[0];
43 std::cerr <<
"Failed to start engine." << std::endl;