1
0
mirror of synced 2025-01-29 19:17:28 +01:00

impr: Allow per-OS info banners

This commit is contained in:
WerWolv 2023-12-08 14:43:59 +01:00
parent 6df3a9243f
commit e9bca123c2

View File

@ -637,7 +637,12 @@ namespace hex::plugin::builtin {
if (!s_infoBannerTexture.isValid()) {
TaskManager::createBackgroundTask("Load banner", [](auto&) {
HttpRequest request("GET", ImHexApiURL + std::string("/info_banner"));
HttpRequest request("GET",
ImHexApiURL + hex::format("/{}/info_banner",
ImHexApi::System::getOSName() | std::views::transform([](char c) { return std::tolower(c); })
)
);
auto response = request.downloadFile().get();
if (response.isSuccess()) {