diff --git a/CEFInjectLib/CEFInject.cpp b/CEFInjectLib/CEFInject.cpp index 4270031..48b3aa9 100644 --- a/CEFInjectLib/CEFInject.cpp +++ b/CEFInjectLib/CEFInject.cpp @@ -75,8 +75,6 @@ namespace CEFInject const auto json = nlohmann::json::parse(res->body); for (const auto& tab : json) { if (tab["title"].get().starts_with(tabname)) { - - #ifdef _WIN32 INT rc; WSADATA wsaData; @@ -106,10 +104,10 @@ namespace CEFInject bool exit = false; while (ws->getReadyState() != easywsclient::WebSocket::CLOSED) { ws->poll(); - ws->dispatch([&ws, & res, & exit](const std::string & message) { + ws->dispatch([&ws, &res, &exit](const std::string& message) { res = nlohmann::json::parse(message)["result"]["result"]["value"]; - exit = true; - }); + exit = true; + }); if (exit) { ws->close(); return res; @@ -128,6 +126,7 @@ namespace CEFInject } } } + return nullptr; } } \ No newline at end of file diff --git a/GlosSITarget/SteamTarget.cpp b/GlosSITarget/SteamTarget.cpp index 30592e6..df5878a 100644 --- a/GlosSITarget/SteamTarget.cpp +++ b/GlosSITarget/SteamTarget.cpp @@ -15,13 +15,10 @@ limitations under the License. */ #include "SteamTarget.h" -#include "..\common\Settings.h" +#include "../common/Settings.h" #include "steam_sf_keymap.h" #include -#include -#include -#include #include #ifdef _WIN32 diff --git a/GlosSITarget/TargetWindow.cpp b/GlosSITarget/TargetWindow.cpp index f744b43..41e296c 100644 --- a/GlosSITarget/TargetWindow.cpp +++ b/GlosSITarget/TargetWindow.cpp @@ -398,7 +398,7 @@ void TargetWindow::createWindow() overlay_ = std::make_shared( window_, [this]() { close(); }, toggle_overlay_state_, Settings::window.windowMode); - spdlog::debug("auto screen sCale: {}", dpi/96.f); + spdlog::debug("auto screen Scale: {}", dpi/96.f); ImGuiIO& io = ImGui::GetIO(); io.FontGlobalScale = dpi / 96.f; ImGui::SFML::UpdateFontTexture();