waterfall loading of textures via id to prefer elfid-gameid when launched via elf; fallback to gameid if no match

This commit is contained in:
cbartondock committed 2026-07-15 12:02:16 -07:00
1 parent d3b2943807
commit 83dc4685aa
5 files changed
+83 -24

No files matched your search

+7
View File
@@ -3,6 +3,7 @@
#pragma once
#include <fmt/ranges.h>
#include <memory>
#include <set>
#include <string>
@@ -20,6 +21,12 @@ enum class TextureFormat;
std::set<std::string> GetTextureDirectoriesWithGameId(const std::string& root_directory,
const std::string& game_id);
// Tries each id in priority order, returning the directories for the first id that matches
// anything. Returns an empty set if none of the ids match.
std::set<std::string>
GetTextureDirectoriesForFirstMatchingGameId(const std::string& root_directory,
const std::vector<std::string>& game_ids);
class HiresTexture
{
public: