DBG: no auto refresh of patches when calling MemPatch + clear patches on close
This commit is contained in:
parent
74d0b92474
commit
c2a2177bd1
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue