Commit Graph

43 Commits

Author SHA1 Message Date
zzyyyl
42ff5eaddf perf: 围绕 AsstHttp 的各种优化 2022-09-06 14:14:22 +08:00
MistEO
5a76c5d052 Merge pull request #1765 from dantmnf/dev
chore: win32 improvements
2022-09-05 23:18:10 +08:00
Horror Proton
dd7bbf0d54 fix: prevent copy in logger 2022-09-05 19:37:28 +08:00
dantmnf
87b8f8f032 chore: use filesystem::path everywhere 2022-09-05 01:17:54 +08:00
MistEO
22645e5581 perf: 优化Logger小细节 2022-09-04 23:53:16 +08:00
MistEO
0e0288658b perf: 加强读取资源类的约束,增加单例 concept 2022-09-04 00:59:01 +08:00
MistEO
c89ec1722f refactor: 重构 Resource 类
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1541
2022-09-04 00:27:54 +08:00
zzyyyl
dab2cb8faf style: 按照 review 意见修改代码格式
Co-authored-by: Horror Proton <107091537+horror-proton@users.noreply.github.com>
2022-08-26 21:17:55 +08:00
zzyyyl
2302ad0681 style: clang format 2022-08-26 19:11:34 +08:00
zzyyyl
54f225f1e3 feat: Logger 可输出 ranges 2022-08-25 00:34:55 +08:00
MistEO
01b05fd85d style: format 2022-08-13 18:05:02 +08:00
lhhxxxxx
f303018fdc perf. c++ code tidy
style. typo fixed
2022-07-30 18:24:31 +08:00
Horror Proton
2eaced97c2 style: fix file mode 2022-07-12 00:40:05 +08:00
Horror Proton
5cb59e9911 fix: update assertion message 2022-07-11 02:15:50 +08:00
Horror Proton
b154adcc60 feat: support range-expressions in log argument 2022-07-10 22:40:49 +08:00
Horror Proton
15f4c16e41 fix: add a left branch 2022-07-10 21:19:14 +08:00
Horror Proton
eda63d1de3 fix. match arg types of printf 2022-07-10 13:32:33 +08:00
Horror Proton
0827d27054 fix: remove extra space in log, reopen stream after failure 2022-07-10 11:21:57 +08:00
Horror Proton
d7c515df4f fix: fix typo 2022-07-10 10:57:24 +08:00
Horror Proton
05a829c086 fix: remove trailing space of line for log file 2022-07-10 10:29:49 +08:00
Horror Proton
3f20b71ae4 Improve style and tidiness, simplify nested namespace 2022-06-19 23:00:40 +08:00
Horror Proton
efcf1b5f2c Remove redundant if, fix some compile errors on linux platform (uncompleted) 2022-06-19 22:52:46 +08:00
MistEO
d9e26cd0de style: 所有代码格式化 2022-06-19 21:24:07 +08:00
lhhxxxxx
38c9bcdf15 perf. remove redundant semicolon 2022-06-06 23:11:00 +08:00
Dusk_NM02
e3116a07e3 refactor.将编码互转函数重命名
gbk_2_utf8 -> ansi_to_utf8
utf8_to_gbk -> utf8_to_ansi
2022-06-04 01:36:22 +08:00
MistEO
d3387c408c chore.日志增加一个warn等级,调整部分日志为warn 2022-06-03 01:59:18 +08:00
zzyyyl
1e0c32d0db fix.修复编码问题
中文路径也能用maa辣!
windows下,路径相关的全都用gbk存储,输出到log的信息统一用utf8
2022-05-14 02:20:17 +08:00
MistEO
402db474d6 Merge pull request #485 from zhangchi0104/patch-1
修复了linux编译Logger.hpp报错
2022-05-11 23:27:22 +08:00
alexzhang
908730029e 修复了linux编译时logger.hpp报错
linux编译时会报错
```
In file included from /home/alexzhang/code/maa-building/MaaAssistantArknights/src/MeoAssistant/AbstractConfiger.cpp:6:
/home/alexzhang/code/maa-building/MaaAssistantArknights/src/MeoAssistant/Logger.hpp: In member function ‘void asst::Logger::log(std::string_view, Args&& ...)’:
/home/alexzhang/code/maa-building/MaaAssistantArknights/src/MeoAssistant/Logger.hpp:136:52: error: ‘std::this_thread’ has not been declared
  136 |                       level.data(), getpid(), std::this_thread::get_id()
      |                                                    ^~~~~~~~~~~
```
添加了 `#include <thread>`后问题解决
2022-05-11 07:12:42 +08:00
MistEO
e34b91b6a4 fix.修复一些跨平台编译问题
https://github.com/MistEO/MeoAssistantArknights/issues/278
2022-03-10 14:21:41 +08:00
MistEO
25032911b9 style.代码格式化 2022-03-07 22:09:06 +08:00
MistEO
1fdb131f7b refactor.读取资源接口解耦 2022-03-04 23:51:08 +08:00
MistEO
5725d20809 feat.新增日志外部接口,更新python接口 2022-02-19 22:36:45 +08:00
MistEO
5885af6845 chore.宏学! 2022-01-09 17:12:19 +08:00
MistEO
4f5cba41ff chore.优化调试日志和调试宏 2022-01-04 15:15:49 +08:00
MistEO
147a81c109 sytle.统一行尾 2021-12-31 22:56:03 +08:00
MistEO
d62468b2e8 fix.修复Windows下的编译错误 2021-12-26 03:39:53 +08:00
MistEO
853dc1be1c feat.初步完成跨平台移植的初始化部分 2021-12-25 17:48:20 +08:00
MistEO
649e5d4953 perf.降低日志开关文件频率 2021-12-20 22:42:30 +08:00
MistEO
988852170c feat.初步完成百度OCR API的集成 2021-12-16 01:21:11 +08:00
MistEO
1e684c1d32 opt.优化一些计时方式 2021-12-15 00:29:23 +08:00
MistEO
ceaaa4600b opt.优化日志的一些小问题 2021-12-15 00:29:23 +08:00
MistEO
716d4e079a style.项目、文件名统一化 2021-12-15 00:29:17 +08:00