From 4a5d4fc977794c226f865e8e65907ede1c2dab90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sat, 16 Mar 2024 18:30:21 +0800 Subject: [PATCH] Update python.cpp --- LunaHook/engines/python/python.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaHook/engines/python/python.cpp b/LunaHook/engines/python/python.cpp index f155579..57fd3fc 100644 --- a/LunaHook/engines/python/python.cpp +++ b/LunaHook/engines/python/python.cpp @@ -64,7 +64,7 @@ std::unordered_map 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()); }