From e9bca123c28dfab06e30ce8f6f9db18f7495ac41 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 8 Dec 2023 14:43:59 +0100 Subject: [PATCH] impr: Allow per-OS info banners --- plugins/builtin/source/content/welcome_screen.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/welcome_screen.cpp b/plugins/builtin/source/content/welcome_screen.cpp index f700e2c9a..540fe9df3 100644 --- a/plugins/builtin/source/content/welcome_screen.cpp +++ b/plugins/builtin/source/content/welcome_screen.cpp @@ -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()) {