mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-25 20:54:15 +08:00
Update hookcode.cpp
This commit is contained in:
parent
4d8cc290b3
commit
db7cae083a
@ -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 {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user