diff --git a/src/Common/config.cpp b/src/Common/config.cpp index 28d6c8f8..a13c0d78 100644 --- a/src/Common/config.cpp +++ b/src/Common/config.cpp @@ -7,6 +7,14 @@ using namespace ZL::Network; namespace Config { +void loaIniConfig(){ + auto &ini = ZL::Util::mINI::Instance(); + try{ + ini.parseFile(exePath() + ".ini"); + }catch (std::exception &ex) { + ini.dumpFile(exePath() + ".ini"); + } +} ////////////广播名称/////////// namespace Broadcast { const char kBroadcastRtspSessionPlay[] = "kBroadcastRtspSessionPlay"; diff --git a/src/Common/config.h b/src/Common/config.h index 7dd4d0ed..e941d1ac 100644 --- a/src/Common/config.h +++ b/src/Common/config.h @@ -13,6 +13,8 @@ using namespace ZL::Util; namespace Config { + +void loaIniConfig(); ////////////TCP最大连接数/////////// #ifdef __x86_64__ #define MAX_TCP_SESSION 512