feat: 增加配置文件

This commit is contained in:
hugy committed 2023-04-26 09:57:39 +08:00
1 parent f9a7924658
commit 34eb14edb2
5 files changed
+31 -17

No files matched your search

+13 -2
View File
@@ -1,6 +1,17 @@
#include "config.h"
#include "pch.h"
#include "config.h"
namespace wxhelper {
Config::Config(/* args */) {}
Config::~Config() {}
} // namespace wxhelper
void Config::Initialize(){
port_ = GetPrivateProfileInt("config", "Port", 19088, "./config.ini");
}
int Config::GetPort(){
return port_;
}
} // namespace wxhelper