DBG: added GuiUpdatePatches
This commit is contained in:
parent
993a8fe988
commit
460489189c
|
@ -990,6 +990,11 @@ BRIDGE_IMPEXP void GuiRepaintTableView()
|
|||
_gui_sendmessage(GUI_REPAINT_TABLE_VIEW, 0, 0);
|
||||
}
|
||||
|
||||
BRIDGE_IMPEXP void GuiUpdatePatches()
|
||||
{
|
||||
_gui_sendmessage(GUI_UPDATE_PATCHES, 0, 0);
|
||||
}
|
||||
|
||||
//Main
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
|
|
|
@ -619,7 +619,8 @@ enum GUIMSG
|
|||
GUI_SCRIPT_ENABLEHIGHLIGHTING, // param1=bool enable, param2=unused
|
||||
GUI_ADD_MSG_TO_STATUSBAR, // param1=const char* msg, param2=unused
|
||||
GUI_UPDATE_SIDEBAR, // param1=unused, param2=unused
|
||||
GUI_REPAINT_TABLE_VIEW // param1=unused, param2=unused
|
||||
GUI_REPAINT_TABLE_VIEW, // param1=unused, param2=unused
|
||||
GUI_UPDATE_PATCHES // param1=unused, param2=unused
|
||||
};
|
||||
|
||||
//GUI structures
|
||||
|
@ -690,6 +691,7 @@ BRIDGE_IMPEXP void GuiAutoCompleteClearAll();
|
|||
BRIDGE_IMPEXP void GuiAddStatusBarMessage(const char* msg);
|
||||
BRIDGE_IMPEXP void GuiUpdateSideBar();
|
||||
BRIDGE_IMPEXP void GuiRepaintTableView();
|
||||
BRIDGE_IMPEXP void GuiUpdatePatches();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -63,7 +63,9 @@ static bool _patchinrange(duint start, duint end)
|
|||
|
||||
static bool _mempatch(duint va, const unsigned char* src, duint size)
|
||||
{
|
||||
return mempatch(fdProcessInfo->hProcess, (void*)va, src, size, 0);
|
||||
bool ret=mempatch(fdProcessInfo->hProcess, (void*)va, src, size, 0);
|
||||
GuiUpdatePatches();
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void _patchrestorerange(duint start, duint end)
|
||||
|
|
Loading…
Reference in New Issue