#include <string>#include <vector>Go to the source code of this file.
Functions | |
| void | clearTextureNameCache () |
| std::string | getImagePath (std::string_view path) |
| std::string | getTexturePath (const std::string &filename, bool *is_base_pack=nullptr) |
| std::vector< std::string > | getTextureDirs () |
| void clearTextureNameCache | ( | ) |
References g_texturedirs_cache, and g_texturename_to_path_cache.
Referenced by Game::Game(), and Game::~Game().
| std::string getImagePath | ( | std::string_view | path | ) |
References fs::PathExists(), and removeStringEnd().
Referenced by getTexturePath(), and ModApiMainMenu::l_get_games().
| std::vector< std::string > getTextureDirs | ( | ) |
References g_settings, g_texturedirs_cache, and fs::GetRecursiveDirs().
Referenced by getTexturePath().
| std::string getTexturePath | ( | const std::string & | filename, |
| bool * | is_base_pack = nullptr ) |
References DIR_DELIM, g_texturename_to_path_cache, getImagePath(), getTextureDirs(), and porting::path_share.
Referenced by SourceImageCache::getOrLoad(), SourceImageCache::insert(), and TextureSource::isKnownSourceImage().