Small fix

This commit is contained in:
fed 2023-10-01 19:06:13 +02:00
parent 39e87d401a
commit b015e8d96b
No known key found for this signature in database
GPG Key ID: 1D2C630F04722996
3 changed files with 4 additions and 8 deletions

View File

@ -154,7 +154,7 @@ namespace motd
{
const auto& image = image_data.value();
console::debug("Downloaded featured tab image %i\n", index);
images::override_texture(image_name + std::format("_{}", index), image);
images::override_texture(std::format("{}_{}", image_name, index), image);
}
};

View File

@ -79,8 +79,9 @@ namespace patches
public:
void post_unpack() override
{
// Fix startup crash (bnet)
// Fix startup crashes
utils::hook::set(0x140272F70, 0xC301B0);
utils::hook::jump(0x140046148, sub_46148);
// Fix shutdown crash
utils::hook::jump(0x1408B1CD0, 0x1408B1BA0);

View File

@ -364,12 +364,7 @@ namespace ui_scripting
{
const auto links = motd::get_links();
const auto link = links.find(name);
if (link == links.end())
{
return false;
}
return true;
return link != links.end();
};
lua["string"]["escapelocalization"] = [](const std::string& str)