summaryrefslogtreecommitdiff
path: root/csgo-loader/csgo-client/Security/SyscallManager.hpp
diff options
context:
space:
mode:
authorboris <wzn@moneybot.cc>2018-12-24 20:39:09 +1300
committerboris <wzn@moneybot.cc>2018-12-24 20:39:09 +1300
commitace9ae2117175dfe5e14b259db2e0536f8ec7a8a (patch)
treee657af71b250546fb3e135fdadb1cd31f1a07671 /csgo-loader/csgo-client/Security/SyscallManager.hpp
parent8a6e64f020047709f53ddd35797c511a5d3239fe (diff)
fffffffff
Diffstat (limited to 'csgo-loader/csgo-client/Security/SyscallManager.hpp')
-rw-r--r--csgo-loader/csgo-client/Security/SyscallManager.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/csgo-loader/csgo-client/Security/SyscallManager.hpp b/csgo-loader/csgo-client/Security/SyscallManager.hpp
index a9c67aa..5e33821 100644
--- a/csgo-loader/csgo-client/Security/SyscallManager.hpp
+++ b/csgo-loader/csgo-client/Security/SyscallManager.hpp
@@ -9,6 +9,8 @@
#include <vector>
#include <iterator>
+#include <UserExperience/UserInterface.hpp>
+
using ByteArray = std::vector<uint8_t>;
namespace Wrapper
@@ -60,6 +62,11 @@ namespace Wrapper
template < typename T >
T Find(uint64_t Hash)
{
+ uint64_t Syscall = m_Syscalls[Hash].Get();
+
+ if(!Syscall)
+ ERROR_ASSERT("[000F:00001B00] Internal software error. Please contact an administrator.");
+
return (T)m_Syscalls[Hash].Get();
}
};