feat: 增加配置文件
This commit is contained in:
1 parent
f9a7924658
commit
34eb14edb2
5 files changed
+31
-17
No files matched your search
+13
-2
@@ -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
|
||||
Reference in new issue
Block a user