diff --git a/src/backend/backend.cpp b/src/backend/backend.cpp index c8656621..f5c94a7b 100644 --- a/src/backend/backend.cpp +++ b/src/backend/backend.cpp @@ -13,6 +13,7 @@ #include "thread_pool.hpp" #include "util/teleport.hpp" #include "services/squad_spawner/squad_spawner.hpp" +#include "services/vehicle/xml_vehicles_service.hpp" namespace big @@ -25,6 +26,7 @@ namespace big register_script_patches(); teleport::fetch_saved_locations(); g_squad_spawner_service.fetch_squads(); + g_xml_vehicles_service->fetch_xml_files(); while (g_running) { diff --git a/src/main.cpp b/src/main.cpp index 66407f36..a9bb11ea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -31,6 +31,7 @@ #include "services/tunables/tunables_service.hpp" #include "services/vehicle/handling_service.hpp" #include "services/vehicle/vehicle_control_service.hpp" +#include "services/vehicle/xml_vehicles_service.hpp" #include "thread_pool.hpp" #include "util/migrate.hpp" #include "version.hpp" @@ -108,6 +109,7 @@ BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID) auto api_service_instance = std::make_unique(); auto tunables_service_instance = std::make_unique(); auto script_connection_service_instance = std::make_unique(); + auto xml_vehicles_service_instance = std::make_unique(); LOG(INFO) << "Registered service instances..."; g_script_mgr.add_script(std::make_unique