impr: Allow per-OS info banners
This commit is contained in:
parent
6df3a9243f
commit
e9bca123c2
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user