1
0
Fork 0

Removing const from write()

This commit is contained in:
fileoffset 2015-07-20 19:20:15 +10:00
parent d071625dc0
commit 756b08035d
2 changed files with 4 additions and 4 deletions

View File

@ -16,14 +16,14 @@ bool MemoryPage::read(byte_t* parDest, uint_t parRVA, uint_t parSize) const
return read(reinterpret_cast<void*>(parDest), parRVA, parSize);
}
bool MemoryPage::write(const void* parDest, uint_t parRVA, uint_t parSize) const
bool MemoryPage::write(const void* parDest, uint_t parRVA, uint_t parSize)
{
bool ret = DbgFunctions()->MemPatch(mBase + parRVA, reinterpret_cast<const unsigned char*>(parDest), parSize);
GuiUpdatePatches();
return ret;
}
bool MemoryPage::write(const byte_t* parDest, uint_t parRVA, uint_t parSize) const
bool MemoryPage::write(const byte_t* parDest, uint_t parRVA, uint_t parSize)
{
return write(reinterpret_cast<const void*>(parDest), parRVA, parSize);
}

View File

@ -12,8 +12,8 @@ public:
bool read(void* parDest, uint_t parRVA, uint_t parSize) const;
bool read(byte_t* parDest, uint_t parRVA, uint_t parSize) const;
bool write(const void* parDest, uint_t parRVA, uint_t parSize) const;
bool write(const byte_t* parDest, uint_t parRVA, uint_t parSize) const;
bool write(const void* parDest, uint_t parRVA, uint_t parSize);
bool write(const byte_t* parDest, uint_t parRVA, uint_t parSize);
uint_t getSize() const;
uint_t getBase() const;
uint_t va(int_t rva) const;