[W-I-P] Refactoring started

This commit is contained in:
hasherezade
2017-02-11 20:45:37 +01:00
parent eb17ce28ba
commit f477a765b3
55 changed files with 466 additions and 459 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
ExeElementWrapper::ExeElementWrapper(Executable *v_exe)
{
if (v_exe == NULL) {
Logger::append(Logger::ERROR, "Cannot initialize with Exe == NULL!");
Logger::append(Logger::D_ERROR, "Cannot initialize with Exe == NULL!");
throw CustomException("Cannot initialize with Exe == NULL!");
}
this->m_Exe = v_exe;
@@ -104,11 +104,11 @@ bool ExeElementWrapper::copyToOffset(offset_t rawOffset)
if (this->m_Exe == NULL) return false;
if (canCopyToOffset(rawOffset) == false) {
Logger::append(Logger::ERROR,"The area is not empty!");
Logger::append(Logger::D_ERROR,"The area is not empty!");
return false;
}
if (m_Exe->pasteBuffer(rawOffset, this, false) == false) {
Logger::append(Logger::ERROR,"Cannot paste the buffer!");
Logger::append(Logger::D_ERROR,"Cannot paste the buffer!");
return false;
}
return true;