style: make resource formatted

This commit is contained in:
MistEO
2022-07-19 22:51:54 +08:00
parent 72edaf786c
commit 4eaaaac7e0
6 changed files with 46268 additions and 46233 deletions

View File

@@ -19,11 +19,11 @@ bool asst::AbstractConfiger::load(const std::string& filename)
return false;
}
std::string content = utils::load_file_without_bom(filename);
//std::string content = utils::load_file_without_bom(filename);
auto&& ret = json::parser::parse(content);
auto&& ret = json::open(filename, true);
if (!ret) {
m_last_error = "json pasing error, content:" + content;
m_last_error = "json pasing error, filename: " + filename;
return false;
}