Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
e
Browse files Browse the repository at this point in the history
auto update logic, launcher
  • Loading branch information
Skwll committed Jul 18, 2023
1 parent a520b31 commit 82ec6a5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
Binary file modified data/launcher/bigboiii.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions data/launcher/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,17 @@

<div class="content">
<h1>
<span style="color: #f97316">B</span
<span style="color: #ffffff">EZZ</span
><span style="color: #f97316"> </span
><span style="color: #f97316">B</span
><span style="color: #ec511c">O</span
><span style="color: #e53f21">I</span
><span style="color: #e23623">I</span
><span style="color: #dc2626">I</span>
</h1>
<div class="button" onclick="window.external.runGame()">Play</div>
<div class="button" onclick="window.external.openUrl('https://boiii.re')">
About
<div class="button" onclick="window.external.openUrl('https://discord.gg/ezz')">
Discord
</div>
</div>

Expand Down
12 changes: 2 additions & 10 deletions src/client/updater/file_updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,25 +175,17 @@ namespace updater

auto outdated_files = this->get_outdated_files(files);

auto it = std::find_if(outdated_files.begin(), outdated_files.end(),
auto it = std::find_if(files.begin(), files.end(),
[&](const file_info& file) { return file.name == "ext.dll"; });

if (it == outdated_files.end())
if (it != files.end() && it->hash != url_ext_dll_hash)
{
file_info ext_dll_info;
ext_dll_info.name = "ext.dll";
ext_dll_info.hash = url_ext_dll_hash;
ext_dll_info.size = data ? data->size() : 0;
outdated_files.push_back(ext_dll_info);
}
else
{
if (it->hash != url_ext_dll_hash)
{
it->hash = url_ext_dll_hash;
it->size = data ? data->size() : 0;
}
}

if (!outdated_files.empty())
{
Expand Down

0 comments on commit 82ec6a5

Please sign in to comment.