From c85bdcf287001d75c993b173e746e248ee1128ea 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: Thu, 4 Apr 2024 22:34:02 +0800 Subject: [PATCH] Update yuzusuyu.cpp --- LunaHook/engine64/yuzusuyu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaHook/engine64/yuzusuyu.cpp b/LunaHook/engine64/yuzusuyu.cpp index 7f9ada6..6d863ed 100644 --- a/LunaHook/engine64/yuzusuyu.cpp +++ b/LunaHook/engine64/yuzusuyu.cpp @@ -87,7 +87,7 @@ struct GameInfo { bool checkiscurrentgame(const emfuncinfo& em){ auto wininfos=get_proc_windows(); for(auto&& info:wininfos){ - if((game_info.version.size())&&(info.title.find(acastw(game_info.version))!=info.title.npos)&&(game_info.id!=0)){ + if((game_info.version.size())&&game_info.name.size()&&(game_info.id!=0)){ //判断是有效的info auto checkversion=(em._version==0)||(std::string(em._version)==(game_info.version)); auto checkid=(std::stoll(em._id,0,16)==game_info.id);