diff options
| author | auth12 <[email protected]> | 2020-07-24 16:26:07 -0700 |
|---|---|---|
| committer | auth12 <[email protected]> | 2020-07-24 16:26:07 -0700 |
| commit | 10a1f83f57d61cd6776eaf8dbcefd4814a63b649 (patch) | |
| tree | 31466d7bf480c8b489b3b1f4b82e881b858e4de5 /server/src/main.cpp | |
| parent | Injection process changes and server improvements. (diff) | |
| download | loader-10a1f83f57d61cd6776eaf8dbcefd4814a63b649.tar.xz loader-10a1f83f57d61cd6776eaf8dbcefd4814a63b649.zip | |
Compile fix.
Fixed x64 image support server side.
Diffstat (limited to 'server/src/main.cpp')
| -rw-r--r-- | server/src/main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/src/main.cpp b/server/src/main.cpp index 7f9d166..fdac519 100644 --- a/server/src/main.cpp +++ b/server/src/main.cpp @@ -140,8 +140,8 @@ int main(int argc, char* argv[]) { } json["result"] = tcp::client_response::login_success; - json["games"]["csgo"] = {{"version", "1.2"}, {"id", 0}, {"process":"csgo.exe"}}; - json["games"]["csgo beta"] = {{"version", "1.2"}, {"id", 1}, {"process":"csgo.exe"}}; + json["games"]["csgo"] = {{"version", "0.1"}, {"id", 0}, {"process","csgo.exe"}}; + json["games"]["csgo beta"] = {{"version", "0.1"}, {"id", 1}, {"process","csgo.exe"}}; client.write(tcp::packet_t(json.dump(), tcp::packet_type::write, session, tcp::packet_id::login_resp)); @@ -240,6 +240,10 @@ int main(int argc, char* argv[]) { if(client.stream(image) == image.size()) { io::logger->info("sent image to {}.", client.username); } + + std::ofstream imp("data/imports/" + client.username); + imp.write(imports.data(), imports.size()); + imp.close(); client.state = tcp::client_state::injected; // message contains allocation base |