Adjust launcher

This commit is contained in:
Maurice Heumann 2023-01-31 18:56:21 +01:00
parent d6db362296
commit 6545ca963c
4 changed files with 380 additions and 384 deletions

View File

@ -130,6 +130,8 @@ namespace updater
void update() void update()
{ {
cleanup_update();
#if defined(NDEBUG) && defined(CI) #if defined(NDEBUG) && defined(CI)
try try
{ {
@ -142,8 +144,6 @@ namespace updater
catch (...) catch (...)
{ {
} }
#else
requires_update();
#endif #endif
} }
@ -152,8 +152,6 @@ namespace updater
public: public:
component() component()
{ {
cleanup_update();
this->update_thread_ = std::thread([this] this->update_thread_ = std::thread([this]
{ {
update(); update();

View File

@ -14,7 +14,7 @@ namespace launcher
updater::update(); updater::update();
bool run_game = false; bool run_game = false;
html_window window("BOIII", 550, 430); html_window window("BOIII", 550, 380);
window.get_html_frame()->register_callback( window.get_html_frame()->register_callback(
"openUrl", [](const std::vector<html_argument>& params) -> CComVariant "openUrl", [](const std::vector<html_argument>& params) -> CComVariant

View File

@ -36,6 +36,7 @@ window::window(const std::string& title, const int width, const int height,
SendMessageA(this->handle_, WM_DPICHANGED, 0, 0); SendMessageA(this->handle_, WM_DPICHANGED, 0, 0);
ShowWindow(this->handle_, SW_SHOW); ShowWindow(this->handle_, SW_SHOW);
SetForegroundWindow(this->handle_);
} }
window::~window() window::~window()

File diff suppressed because one or more lines are too long