From 10a1f83f57d61cd6776eaf8dbcefd4814a63b649 Mon Sep 17 00:00:00 2001 From: auth12 <67507608+auth12@users.noreply.github.com> Date: Fri, 24 Jul 2020 16:26:07 -0700 Subject: Compile fix. Fixed x64 image support server side. --- server/src/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'server/src/main.cpp') 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 -- cgit v1.2.3