diff --git a/include/dataStore/RouteEntity.h b/include/dataStore/RouteEntity.h index d9565dd..b2603c4 100644 --- a/include/dataStore/RouteEntity.h +++ b/include/dataStore/RouteEntity.h @@ -81,6 +81,7 @@ namespace NekoGui { static QStringList get_attributes(); static inputType get_input_type(const QString& fieldName); static QStringList get_values_for_field(const QString& fieldName); + static std::shared_ptr get_processPath_direct_rule(QString processPath); QStringList get_current_value_string(const QString& fieldName); [[nodiscard]] QString get_current_value_bool(const QString& fieldName) const; void set_field_value(const QString& fieldName, const QStringList& value); diff --git a/src/configs/ConfigBuilder.cpp b/src/configs/ConfigBuilder.cpp index dab17b8..0093bca 100644 --- a/src/configs/ConfigBuilder.cpp +++ b/src/configs/ConfigBuilder.cpp @@ -437,6 +437,7 @@ namespace NekoGui { status->result->extraCoreData->config = bean->extraCoreConf; status->result->extraCoreData->configDir = GetBasePath(); status->result->extraCoreData->noLog = bean->noLogs; + routeChain->Rules << RouteRule::get_processPath_direct_rule(bean->extraCorePath); } // Direct domains diff --git a/src/dataStore/RouteEntity.cpp b/src/dataStore/RouteEntity.cpp index 4c7c8bd..1206a8a 100644 --- a/src/dataStore/RouteEntity.cpp +++ b/src/dataStore/RouteEntity.cpp @@ -443,6 +443,18 @@ namespace NekoGui { return false; } + std::shared_ptr RouteRule::get_processPath_direct_rule(QString processPath) + { + auto res = std::make_shared(); + res->name = "AutoGenerated direct extra core"; + res->action = "route"; + res->outboundID = -2; + res->process_path = {processPath}; + + return res; + } + + bool isOutboundIDValid(int id) { switch (id) { case -1: