| 573 | } |
| 574 | |
| 575 | static void loadModScriptPaths(color_ostream &out) { |
| 576 | std::vector<std::string> mod_script_paths_str; |
| 577 | std::vector<std::filesystem::path> mod_script_paths; |
| 578 | Lua::CallLuaModuleFunction(out, "script-manager", "get_mod_script_paths", {}, 1, |
| 579 | [&](lua_State *L) { |
| 580 | Lua::GetVector(L, mod_script_paths_str); |
| 581 | }); |
| 582 | DEBUG(script,out).print("final mod script paths:\n"); |
| 583 | for (auto& path : mod_script_paths_str) |
| 584 | { |
| 585 | DEBUG(script, out).print(" {}\n", path); |
| 586 | mod_script_paths.push_back(std::filesystem::weakly_canonical(std::filesystem::path{ path })); |
| 587 | } |
| 588 | Core::getInstance().setModScriptPaths(mod_script_paths); |
| 589 | } |
| 590 | |
| 591 | static std::map<std::string, state_change_event> state_change_event_map; |
| 592 | static void sc_event_map_init() { |
no test coverage detected