Small fix
This commit is contained in:
parent
39e87d401a
commit
b015e8d96b
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user