Skip to content

Conversation

@neko-para
Copy link

看要不要改现有的实现(路由到通用实现上?)

@neko-para neko-para requested a review from MistEO November 2, 2025 15:50
MAA_NS_BEGIN

MAA_UTILS_API const std::filesystem::path& library_dir();
MAA_UTILS_API std::filesystem::path get_library_path(void* addr);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

该想想名字了,这俩函数光看名字不知道有啥区别


std::filesystem::path get_library_path(void* addr)
{
WCHAR path_buf[MAX_PATH + 5];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为啥是 + 5

另外要初始化一下

return {};
}

return { path_buf };

This comment was marked as outdated.

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants