diff options
| author | auth12 <[email protected]> | 2020-07-28 08:09:02 -0700 |
|---|---|---|
| committer | auth12 <[email protected]> | 2020-07-28 08:09:02 -0700 |
| commit | d4e2fe3f1a1d6d89e9110fa1361e942f57812e51 (patch) | |
| tree | 2e602ce164be6baf0281ed73086701cb8ae0ff11 /client/src/main.cpp | |
| parent | Process class redesign. (diff) | |
| download | loader-d4e2fe3f1a1d6d89e9110fa1361e942f57812e51.tar.xz loader-d4e2fe3f1a1d6d89e9110fa1361e942f57812e51.zip | |
Added server support for both x64 and x32 images with automatic selection.
Diffstat (limited to 'client/src/main.cpp')
| -rw-r--r-- | client/src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/main.cpp b/client/src/main.cpp index 83b96fe..71a064f 100644 --- a/client/src/main.cpp +++ b/client/src/main.cpp @@ -9,8 +9,6 @@ #include "util/apiset.h" int main(int argc, char* argv[]) { - io::log("{:x}", g_syscalls()); - tcp::client client; std::thread t{ tcp::client::monitor, std::ref(client) }; @@ -86,8 +84,9 @@ int main(int argc, char* argv[]) { std::string version = value["version"]; std::string process = value["process"]; uint8_t id = value["id"]; + bool x64 = value["x64"]; - client.games.emplace_back(game_data_t{ key, version, process, id }); + client.games.emplace_back(game_data_t{ key, version, process, x64, id }); } io::log("logged in."); @@ -165,7 +164,8 @@ int main(int argc, char* argv[]) { client.selected_game = *it; nlohmann::json j; - j["id"] = id; + j["id"] = client.selected_game.process_name; + j["x64"] = client.selected_game.x64; int ret = client.write(tcp::packet_t(j.dump(), tcp::packet_type::write, client.session_id, |