mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
perf: 简单优化下战斗头像缓存路径的获取
This commit is contained in:
@@ -574,3 +574,11 @@ std::optional<asst::Rect> asst::BattleHelper::get_oper_rect_on_deployment(const
|
||||
|
||||
return oper_iter->second.rect;
|
||||
}
|
||||
|
||||
const std::filesystem::path& asst::BattleHelper::avatar_cache_dir()
|
||||
{
|
||||
using namespace asst::utils::path_literals;
|
||||
|
||||
static const auto dir = UserDir.get() / "cache"_p / "avatars"_p;
|
||||
return dir;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user