1
0
Fork 0

DBG: added GuiUpdatePatches

This commit is contained in:
Mr. eXoDia 2014-07-05 23:12:51 +02:00
parent 993a8fe988
commit 460489189c
3 changed files with 11 additions and 2 deletions

View File

@ -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)
{

View File

@ -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
}

View File

@ -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)