新增mk_ini配置文件相关接口

This commit is contained in:
ziyue
2023-02-11 11:39:26 +08:00
parent b3ba6d4214
commit 9629dbd969
4 changed files with 178 additions and 7 deletions

View File

@@ -158,6 +158,8 @@ API_EXPORT void API_CALL mk_set_option(const char *key, const char *val) {
return;
}
mINI::Instance()[key] = val;
//广播配置文件热加载
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastReloadConfig);
}
API_EXPORT const char * API_CALL mk_get_option(const char *key)