mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-27 07:44:02 +08:00
Update python.cpp
This commit is contained in:
parent
4e633e1c06
commit
4a5d4fc977
@ -64,7 +64,7 @@ std::unordered_map<std::wstring, std::wstring> loadfontfiles() {
|
||||
|
||||
std::vector< std::wstring>collectfile;
|
||||
for (auto fontdir : { std::wstring(LR"(C:\Windows\Fonts)"),std::wstring(localAppDataPath) + LR"(\Microsoft\Windows\Fonts)" }) {
|
||||
|
||||
if (!std::filesystem::exists(fontdir))continue;
|
||||
for (auto entry : std::filesystem::directory_iterator(fontdir)) {
|
||||
collectfile.emplace_back(entry.path());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user