mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
43 lines
1.3 KiB
C++
43 lines
1.3 KiB
C++
#include "init.h"
|
|
#include "logger.h"
|
|
#include "core/module.h"
|
|
#include "core/pipeline.h"
|
|
#include <filesystem>
|
|
//#include "tle.h"
|
|
#include "core/plugin.h"
|
|
#include "satdump_vars.h"
|
|
|
|
void initSatdump()
|
|
{
|
|
logger->info(" _____ __ ____ ");
|
|
logger->info(" / ___/____ _/ /_/ __ \\__ ______ ___ ____ ");
|
|
logger->info(" \\__ \\/ __ `/ __/ / / / / / / __ `__ \\/ __ \\");
|
|
logger->info(" ___/ / /_/ / /_/ /_/ / /_/ / / / / / / /_/ /");
|
|
logger->info("/____/\\__,_/\\__/_____/\\__,_/_/ /_/ /_/ .___/ ");
|
|
logger->info(" /_/ ");
|
|
logger->info("Starting SatDump v" + (std::string)SATDUMP_VERSION);
|
|
logger->info("");
|
|
|
|
//loadConfig();
|
|
|
|
loadPlugins();
|
|
|
|
registerModules();
|
|
|
|
// Load pipelines
|
|
if (std::filesystem::exists("pipelines") && std::filesystem::is_directory("pipelines"))
|
|
loadPipelines("pipelines");
|
|
else
|
|
loadPipelines((std::string)RESOURCES_PATH + "pipelines");
|
|
|
|
// List them
|
|
logger->debug("Registered pipelines :");
|
|
for (Pipeline &pipeline : pipelines)
|
|
logger->debug(" - " + pipeline.name);
|
|
|
|
// TLEs
|
|
//tle::loadTLEs();
|
|
|
|
// Let plugins know we started
|
|
satdump::eventBus->fire_event<satdump::SatDumpStartedEvent>({});
|
|
}
|