From 330070f0f24cdf6d48f21a4b5f28539965a662a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Sun, 24 Nov 2024 16:19:40 +0800 Subject: [PATCH] . --- cpp/LunaHook/LunaHook/engine64/yuzu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/LunaHook/LunaHook/engine64/yuzu.h b/cpp/LunaHook/LunaHook/engine64/yuzu.h index e7cfdb85..2e45b37e 100644 --- a/cpp/LunaHook/LunaHook/engine64/yuzu.h +++ b/cpp/LunaHook/LunaHook/engine64/yuzu.h @@ -10,7 +10,9 @@ public: check_by = CHECK_BY::CUSTOM; check_by_target = []() { - return (wcscmp(processName_lower, L"suyu.exe") == 0 || wcscmp(processName_lower, L"yuzu.exe") == 0 || wcscmp(processName_lower, L"sudachi.exe") == 0); + auto exes = {L"suyu.exe", L"yuzu.exe", L"sudachi.exe", L"citron.exe"}; + return std::any_of(exes.begin(), exes.end(), [](const wchar_t *e) + { return wcscmp(processName_lower, e) == 0; }); }; }; bool attach_function();