Update hookcode.cpp

This commit is contained in:
恍兮惚兮 2024-03-23 13:54:32 +08:00
parent 4d8cc290b3
commit db7cae083a

View File

@ -177,7 +177,13 @@ namespace
std::optional<HookParam> ParseECode(std::wstring code)
{
auto idx=code.find(L'H');
if(idx==code.npos)return {};
if(idx==code.npos)
{
idx=code.find(L'B');
if(idx==code.npos)
return {};
}
auto hpo=ParseHCode(code.substr(idx+1));
code=code.substr(0,idx);
if(hpo.has_value()==false)return {};