mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-28 06:04:12 +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…
x
Reference in New Issue
Block a user