mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-25 20:54:15 +08:00
update
Update embed_util.cc
This commit is contained in:
parent
db7cae083a
commit
3f255bbd26
@ -187,7 +187,7 @@ bool check_is_thread_selected(const ThreadParam& tp){
|
||||
return false;
|
||||
}
|
||||
bool check_embed_able(const ThreadParam& tp){
|
||||
return hostconnected&&check_is_thread_selected(tp)&&(isPauseKeyPressed()==false);
|
||||
return hostconnected&&check_is_thread_selected(tp)&&((isPauseKeyPressed()==false)?true:!embedsharedmem->fastskipignore);
|
||||
}
|
||||
bool waitforevent(UINT32 timems,const ThreadParam& tp,const std::wstring &origin){
|
||||
char eventname[1000];
|
||||
|
@ -144,7 +144,7 @@ C_LUNA_API void Luna_FindHooks_waiting(int* count){
|
||||
for (int lastSize = 0; *count == 0 || *count != lastSize; Sleep(2000)) lastSize = *count;
|
||||
delete count;
|
||||
}
|
||||
C_LUNA_API void Luna_EmbedSettings(DWORD pid,UINT32 waittime,UINT8 fontCharSet,bool fontCharSetEnabled,wchar_t *fontFamily,UINT32 spaceadjustpolicy,UINT32 keeprawtext){
|
||||
C_LUNA_API void Luna_EmbedSettings(DWORD pid,UINT32 waittime,UINT8 fontCharSet,bool fontCharSetEnabled,wchar_t *fontFamily,UINT32 spaceadjustpolicy,UINT32 keeprawtext,bool fastskipignore){
|
||||
auto sm=Host::GetEmbedSharedMem(pid);
|
||||
if(!sm)return;
|
||||
sm->waittime=waittime;
|
||||
@ -153,6 +153,7 @@ C_LUNA_API void Luna_EmbedSettings(DWORD pid,UINT32 waittime,UINT8 fontCharSet,b
|
||||
wcscpy_s(sm->fontFamily,100,fontFamily);
|
||||
sm->spaceadjustpolicy=spaceadjustpolicy;
|
||||
sm->keeprawtext=keeprawtext;
|
||||
sm->fastskipignore=fastskipignore;
|
||||
}
|
||||
C_LUNA_API bool Luna_checkisusingembed(DWORD pid,uint64_t address,uint64_t ctx1,uint64_t ctx2){
|
||||
auto sm=Host::GetEmbedSharedMem(pid);
|
||||
|
@ -35,6 +35,7 @@ struct EmbedSharedMem{
|
||||
UINT8 fontCharSet;
|
||||
wchar_t fontFamily[100];
|
||||
UINT codepage;
|
||||
bool fastskipignore;
|
||||
};
|
||||
class TextHook
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user