aboutsummaryrefslogtreecommitdiff
path: root/client/src/util/syscalls.h
diff options
context:
space:
mode:
authorauth12 <[email protected]>2020-07-21 13:07:42 -0700
committerauth12 <[email protected]>2020-07-21 13:07:42 -0700
commitf09669dd5846d95b063712571ccb7519910a0d6e (patch)
tree902f5ad201651f2d96ccf619e90b76cfa06a7b9b /client/src/util/syscalls.h
parentSyscalls. (diff)
downloadloader-f09669dd5846d95b063712571ccb7519910a0d6e.tar.xz
loader-f09669dd5846d95b063712571ccb7519910a0d6e.zip
Added game selection.
Started process wrapper. Removed asmjit.
Diffstat (limited to 'client/src/util/syscalls.h')
-rw-r--r--client/src/util/syscalls.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/util/syscalls.h b/client/src/util/syscalls.h
index 0d73e4e..45d0ee1 100644
--- a/client/src/util/syscalls.h
+++ b/client/src/util/syscalls.h
@@ -4,15 +4,15 @@ class syscalls {
std::unordered_map<std::string, std::pair<uint16_t, uint16_t>> m_indexes;
std::vector<char> m_stub;
- void *m_call_table;
+ void* m_call_table;
public:
syscalls();
~syscalls();
void init();
- bool valid(const uintptr_t func, const size_t &size);
- uint16_t get_index(const uintptr_t va, uint16_t &offset);
- size_t func_size(const uint8_t *func);
-
+ bool valid(const uintptr_t func, const size_t& size);
+ uint16_t get_index(const uintptr_t va, uint16_t& offset);
+ size_t func_size(const uint8_t* func);
+
template<class T>
T get(const std::string_view func) {
return reinterpret_cast<T>(uintptr_t(m_call_table) + (m_indexes[func.data()].first * m_stub.size()));