Send app icons one by one

This commit is contained in:
Guillaume Meunier
2025-08-08 20:41:46 +02:00
parent 669b06e982
commit 1b78180d73
8 changed files with 91 additions and 47 deletions
+3 -3
View File
@@ -18,10 +18,10 @@
#pragma once
#include <filesystem>
#include <optional>
#include <string>
#include <unordered_map>
#include <vector>
namespace wivrn
{
@@ -31,9 +31,9 @@ struct application
// localised names, with empty locale for default
std::unordered_map<std::string, std::string> name;
std::string exec;
std::vector<std::byte> image; // In PNG
std::optional<std::filesystem::path> icon_path;
std::optional<std::string> path;
};
std::unordered_map<std::string, application> list_applications(bool include_steam = true, bool load_icons = true);
std::unordered_map<std::string, application> list_applications();
} // namespace wivrn