diff options
| author | auth12 <[email protected]> | 2020-07-21 13:07:42 -0700 |
|---|---|---|
| committer | auth12 <[email protected]> | 2020-07-21 13:07:42 -0700 |
| commit | f09669dd5846d95b063712571ccb7519910a0d6e (patch) | |
| tree | 902f5ad201651f2d96ccf619e90b76cfa06a7b9b /client/src/util/syscalls.cpp | |
| parent | Syscalls. (diff) | |
| download | loader-f09669dd5846d95b063712571ccb7519910a0d6e.tar.xz loader-f09669dd5846d95b063712571ccb7519910a0d6e.zip | |
Added game selection.
Started process wrapper.
Removed asmjit.
Diffstat (limited to 'client/src/util/syscalls.cpp')
| -rw-r--r-- | client/src/util/syscalls.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/util/syscalls.cpp b/client/src/util/syscalls.cpp index 624ce5a..279a936 100644 --- a/client/src/util/syscalls.cpp +++ b/client/src/util/syscalls.cpp @@ -23,7 +23,7 @@ void syscalls::init() { uint16_t offset; auto idx = get_index(addr, offset); - if(!idx) continue; + if (!idx) continue; m_indexes[exp.first] = std::make_pair(idx, offset); @@ -49,7 +49,7 @@ void syscalls::init() { } } -bool syscalls::valid(const uintptr_t addr, const size_t &size) { +bool syscalls::valid(const uintptr_t addr, const size_t& size) { auto func = reinterpret_cast<uint8_t*>(addr); // mov r10, rcx @@ -70,13 +70,13 @@ bool syscalls::valid(const uintptr_t addr, const size_t &size) { return false; } -uint16_t syscalls::get_index(const uintptr_t va, uint16_t &offset) { +uint16_t syscalls::get_index(const uintptr_t va, uint16_t& offset) { auto func = reinterpret_cast<uint8_t*>(va); auto size = func_size(reinterpret_cast<uint8_t*>(va)); if (!valid(va, size)) { return 0; } - + for (size_t i{}; i < size; i++) { auto op = func[i]; if (op == 0xb8) { |