mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-27 05:34:14 +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)
|
std::optional<HookParam> ParseECode(std::wstring code)
|
||||||
{
|
{
|
||||||
auto idx=code.find(L'H');
|
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));
|
auto hpo=ParseHCode(code.substr(idx+1));
|
||||||
code=code.substr(0,idx);
|
code=code.substr(0,idx);
|
||||||
if(hpo.has_value()==false)return {};
|
if(hpo.has_value()==false)return {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user