diff --git a/src/client/component/updater.cpp b/src/client/component/updater.cpp index 8e18d659..0cab9567 100644 --- a/src/client/component/updater.cpp +++ b/src/client/component/updater.cpp @@ -130,6 +130,8 @@ namespace updater void update() { + cleanup_update(); + #if defined(NDEBUG) && defined(CI) try { @@ -142,8 +144,6 @@ namespace updater catch (...) { } -#else - requires_update(); #endif } @@ -152,8 +152,6 @@ namespace updater public: component() { - cleanup_update(); - this->update_thread_ = std::thread([this] { update(); diff --git a/src/client/launcher/launcher.cpp b/src/client/launcher/launcher.cpp index 983cba9c..8190a5a8 100644 --- a/src/client/launcher/launcher.cpp +++ b/src/client/launcher/launcher.cpp @@ -14,7 +14,7 @@ namespace launcher updater::update(); bool run_game = false; - html_window window("BOIII", 550, 430); + html_window window("BOIII", 550, 380); window.get_html_frame()->register_callback( "openUrl", [](const std::vector& params) -> CComVariant diff --git a/src/client/launcher/window.cpp b/src/client/launcher/window.cpp index d9340123..1b6dc4a7 100644 --- a/src/client/launcher/window.cpp +++ b/src/client/launcher/window.cpp @@ -36,6 +36,7 @@ window::window(const std::string& title, const int width, const int height, SendMessageA(this->handle_, WM_DPICHANGED, 0, 0); ShowWindow(this->handle_, SW_SHOW); + SetForegroundWindow(this->handle_); } window::~window() diff --git a/src/client/resources/main.html b/src/client/resources/main.html index 658c4ea4..9a2492ba 100644 --- a/src/client/resources/main.html +++ b/src/client/resources/main.html @@ -1,466 +1,463 @@ - - + Open-IW5 - - - + +
-
- +
+ -
- - - \ No newline at end of file + +