1
0
Fork 0

DBG: no auto refresh of patches when calling MemPatch + clear patches on close

This commit is contained in:
Mr. eXoDia 2014-07-06 23:35:08 +02:00
parent 74d0b92474
commit c2a2177bd1
3 changed files with 4 additions and 3 deletions

View File

@ -63,8 +63,7 @@ static bool _patchinrange(duint start, duint end)
static bool _mempatch(duint va, const unsigned char* src, duint size)
{
bool ret=mempatch(fdProcessInfo->hProcess, (void*)va, src, size, 0);
GuiUpdatePatches();
return mempatch(fdProcessInfo->hProcess, (void*)va, src, size, 0);
return ret;
}

View File

@ -7,6 +7,7 @@
#include "symbolinfo.h"
#include "murmurhash.h"
#include "lz4\lz4file.h"
#include "patches.h"
static ModulesInfo modinfo;
static CommentsInfo comments;
@ -75,6 +76,7 @@ void dbclose()
FunctionsInfo().swap(functions);
LoopsInfo().swap(loops);
bpclear();
patchclear();
}
///module functions

View File

@ -16,7 +16,7 @@ bool patchset(uint addr, unsigned char oldbyte, unsigned char newbyte);
bool patchget(uint addr, PATCHINFO* patch);
bool patchdel(uint addr, bool restore);
void patchdelrange(uint start, uint end, bool restore);
void patchclear(const char* mod);
void patchclear(const char* mod = 0);
bool patchenum(PATCHINFO* patchlist, size_t* cbsize);
int patchfile(const PATCHINFO* patchlist, int count, const char* szFileName, char* error);