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()
{
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();

View File

@ -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<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);
ShowWindow(this->handle_, SW_SHOW);
SetForegroundWindow(this->handle_);
}
window::~window()

File diff suppressed because one or more lines are too long