Commit Graph

167 Commits

Author SHA1 Message Date
zzyyyl
9eda6682d5 feat: 删除 screencap() 里的 try_release() 2022-09-18 12:26:34 +08:00
zzyyyl
54b0ba92e4 fix: fix typo 2022-09-18 02:29:09 +08:00
zzyyyl
4a6bd4e567 fix: 修复 Controller 中 m_instance_count 一定会减到负数的问题
满是bug的代码居然正常的跑起来了.jpg
2022-09-17 17:01:52 +08:00
zzyyyl
872f529c0d fix: 修复连接失败析构时 call_command 空指令的问题 2022-09-17 02:55:55 +08:00
Horror Proton
51715a26b3 fix. fix some compile errors, etc 2022-09-15 01:21:04 +08:00
zzyyyl
68f66d2bc2 style: format 2022-09-13 15:37:18 +08:00
dantmnf
58f9820473 fix: potential data racing
&&

perf: use aligned io buffer
2022-09-12 19:09:17 +08:00
MistEO
c41843b828 perf: 添加separator的静态对象 2022-09-11 00:51:57 +08:00
MistEO
45b287cb53 feat: 初版 Logger::separator 2022-09-11 00:51:57 +08:00
MistEO
ba7da15220 perf: 优化调用命令时的日志 2022-09-09 22:03:57 +08:00
zzyyyl
e641382197 style: format 2022-09-09 20:52:24 +08:00
zzyyyl
553e2c7407 perf: 继续修复连接时间过长的问题
fix 2cf5dd2463
2022-09-09 20:48:44 +08:00
zzyyyl
2cf5dd2463 fix: 修复连接时间过长的问题
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1789
2022-09-09 15:59:41 +08:00
MistEO
d9c10bbe28 fix: 修复潜在的空回调函数的问题
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1780
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1779
2022-09-07 21:18:02 +08:00
Horror Proton
2d3a6e58b4 fix: bypass a linux build error 2022-09-06 01:25:50 +08:00
MistEO
47ab442639 style: format 2022-09-05 23:36:27 +08:00
dantmnf
f176610378 fix: add variable initialization 2022-09-05 01:54:44 +08:00
dantmnf
c51840bc6f chore: bind socket to port 0
OS will choose an available port
2022-09-05 01:17:56 +08:00
dantmnf
a540cb4b6d chore: use overlapped io for win32 subprocess 2022-09-05 01:17:56 +08:00
MistEO
c99f1f42cf Merge pull request #1741 from MaaAssistantArknights/perf/uchar
perf: 整理并优化
2022-09-05 00:21:57 +08:00
MistEO
bf97a60109 fix: 修复socket方式截图不可用的问题 2022-09-04 23:21:22 +08:00
zzyyyl
d4cb91bbda perf: rename string_replace_all_batch -> string_replace_all 2022-09-04 17:36:23 +08:00
zzyyyl
cb1a63dbf6 style: constexpr static -> static constexpr 2022-09-04 17:36:23 +08:00
zzyyyl
d165f1d62f refactor: use std::string instead of std::vector<uchar>
perf: 将 gzip 的接口数据类型改回 string,简化代码

style: format
2022-09-04 17:36:23 +08:00
zzyyyl
1a1924da52 perf: 优化行尾检测 2022-09-04 17:36:14 +08:00
MistEO
9ac7aaa6bb perf: 整理满天飞的 get_instance 2022-09-04 01:30:53 +08:00
MistEO
c89ec1722f refactor: 重构 Resource 类
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1541
2022-09-04 00:27:54 +08:00
zzyyyl
e20ffff2af feat: 用毫秒统计截图速度 2022-09-01 16:37:22 +08:00
zzyyyl
425016403c fix: 修复部分模拟器行尾变化的问题
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1719
2022-09-01 16:37:14 +08:00
zzyyyl
c12bde4467 style: 优化部分 initializer_list 的格式 2022-08-29 12:25:55 +08:00
_ChingC
77f32ab7dc fix: 修复通用类型定义,提高cmake最低版本以禁用过老的policy 2022-08-29 10:23:08 +08:00
zzyyyl
cadaeeef80 style: 优化代码格式 2022-08-28 00:31:29 +08:00
MistEO
8ae13b8a25 chore: 再整理一下日志 2022-08-28 00:02:57 +08:00
MistEO
8f5894feb2 chore: 删除一些特别刷屏的日志 2022-08-27 23:48:08 +08:00
MistEO
26c7211303 feat: 为截图反复失败添加错误提示
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1672
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1509
2022-08-27 23:37:35 +08:00
zzyyyl
2302ad0681 style: clang format 2022-08-26 19:11:34 +08:00
MistEO
2a96626c4f fix: 修复编译错误和 typo 2022-08-20 03:17:07 +08:00
MistEO
b36fdbde1c feat: 为controller添加退出标记
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1277
2022-08-20 02:40:03 +08:00
MistEO
75f9e1b63d style: format 2022-08-14 03:06:10 +08:00
Horror Proton
08c153de3e perf: simplify for loops and lambdas, etc 2022-08-13 19:09:25 +08:00
MistEO
01b05fd85d style: format 2022-08-13 18:05:02 +08:00
lhhxxxxx
decd53dc3d style. 使用字面量时间 2022-08-04 22:26:03 +08:00
lhhxxxxx
e50d1ad632 perf. 使用ranges及views及<=>及其他一些c++20优化及一般优化 2022-08-02 02:59:17 +08:00
lhhxxxxx
caf9bf8f4e style. 使用宏优化编码 2022-08-02 00:03:41 +08:00
MistEO
2d6301f104 Merge pull request #1391 from MaaAssistantArknights/feat/c++20
refactor: 升级c++20
2022-08-01 23:20:52 +08:00
MistEO
a9ffc18c09 refactor: 将 disable cv warning 的宏额外封装了一层头文件 2022-08-01 20:16:58 +08:00
Horror Proton
ff400fd143 feat: add Config.hpp 2022-08-01 12:12:30 +08:00
zzyyyl
85293bb278 fix: 尝试修复 clang warnings 2022-08-01 11:29:36 +08:00
lhhxxxxx
477458d896 fix. 漏了一个 2022-07-31 22:57:40 +08:00
Horror Proton
52c25d56cc fix: suppress -Wdeprecated-enum-enum-conversion in opencv 2022-07-31 21:39:16 +08:00