diff options
| author | auth <[email protected]> | 2020-07-17 00:27:29 +0200 |
|---|---|---|
| committer | auth <[email protected]> | 2020-07-17 00:27:29 +0200 |
| commit | eeafa0b030a017c02d11f95c3efe2f361afbdacf (patch) | |
| tree | edb938f74f3abbafc7937047a107174213c2aa57 /client/src | |
| parent | Client login handling on server. (diff) | |
| download | loader-eeafa0b030a017c02d11f95c3efe2f361afbdacf.tar.xz loader-eeafa0b030a017c02d11f95c3efe2f361afbdacf.zip | |
Added injection placeholders.
Diffstat (limited to 'client/src')
| -rw-r--r-- | client/src/client/packet.h | 15 | ||||
| -rw-r--r-- | client/src/injection/mapper.h | 10 | ||||
| -rw-r--r-- | client/src/main.cpp | 5 |
3 files changed, 28 insertions, 2 deletions
diff --git a/client/src/client/packet.h b/client/src/client/packet.h index aba5783..e197bf0 100644 --- a/client/src/client/packet.h +++ b/client/src/client/packet.h @@ -9,7 +9,20 @@ constexpr size_t message_len = 512; enum packet_type { write = 0, read }; -enum packet_id { message = 0, hwid, session, login_req, login_resp, process_list, ban }; +enum packet_id { + message = 0, + hwid, + session, + login_req, + login_resp, + process_list, + ban, + game_select, + image_req, + image_resp, + import_req, + import_resp +}; struct packet_t { std::string message; diff --git a/client/src/injection/mapper.h b/client/src/injection/mapper.h new file mode 100644 index 0000000..ef06a9b --- /dev/null +++ b/client/src/injection/mapper.h @@ -0,0 +1,10 @@ +#pragma once + + +namespace mmap { + struct header { + size_t image_size; + uint32_t entry; + uint32_t base; + }; +};
\ No newline at end of file diff --git a/client/src/main.cpp b/client/src/main.cpp index cef083f..cbe9f65 100644 --- a/client/src/main.cpp +++ b/client/src/main.cpp @@ -2,6 +2,7 @@ #include "util/io.h" #include "client/client.h" #include "assembler/assembler.h" +#include "injection/mapper.h" int main(int argc, char* argv[]) { io::init(); @@ -80,7 +81,9 @@ int main(int argc, char* argv[]) { } if (res == tcp::login_result::login_success) { - client.state = tcp::client_state::waiting; + client.state = tcp::client_state::logged_in; + + io::logger->info("logged in."); } |