diff --git a/include/bytepatch.hpp b/include/bytepatch.hpp index fd7b0c5a..1cd4f8bd 100644 --- a/include/bytepatch.hpp +++ b/include/bytepatch.hpp @@ -21,7 +21,10 @@ public: { addr = (void *) SigScanFunc(pattern); if (!addr) + { + logging::Info("Signature not found"); throw std::runtime_error("Signature not found"); + } addr = static_cast(static_cast(addr) + offset); size = patch.size(); original.resize(size); diff --git a/src/settings/Manager.cpp b/src/settings/Manager.cpp index 7d2a00a8..85a76dfb 100644 --- a/src/settings/Manager.cpp +++ b/src/settings/Manager.cpp @@ -2,6 +2,7 @@ Created on 02.07.18. */ +#include "logging.hpp" #include namespace settings @@ -17,6 +18,7 @@ void Manager::add(IVariable &me, std::string name) { if (registered.find(name) != registered.end()) { + logging::Info(("Double registering variable: " + name).c_str()); throw std::runtime_error("Double registering variable: " + name); } registered.emplace(name, me); @@ -40,4 +42,4 @@ bool Manager::VariableDescriptor::isChanged() { return variable.toString() != defaults; } -} // namespace settings \ No newline at end of file +} // namespace settings