chore.封装utils类,新增读取utf8bom函数,并转换常用配置文件为带bom的

This commit is contained in:
MistEO
2021-10-14 22:48:09 +08:00
parent 31e162ddde
commit 8725f6d393
22 changed files with 224 additions and 214 deletions

View File

@@ -5,7 +5,7 @@
#include <json.h>
#include "AsstAux.h"
#include "AsstUtils.hpp"
#include "Controller.h"
#include "PenguinUploader.h"
#include "ProcessTaskImageAnalyzer.h"
@@ -101,7 +101,7 @@ bool ProcessTask::run()
auto& opt = resource.cfg().get_options();
if (opt.print_window) {
static const std::string dirname = GetCurrentDir() + "screenshot\\";
static const std::string dirname = utils::get_cur_dir() + "screenshot\\";
save_image(image, dirname);
}
if (opt.upload_to_penguin) {