#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 clearTextureNameCache(), g_texturedirs_cache, and g_texturename_to_path_cache.
Referenced by Game::Game(), Game::~Game(), and clearTextureNameCache().
| std::string getImagePath | ( | std::string_view | path | ) |
References getImagePath(), fs::PathExists(), and removeStringEnd().
Referenced by getImagePath(), getTexturePath(), and ModApiMainMenu::l_get_games().
| std::vector< std::string > getTextureDirs | ( | ) |
References g_settings, g_texturedirs_cache, Settings::get(), fs::GetRecursiveDirs(), getTextureDirs(), PATH_DELIM, and str_split().
Referenced by getTextureDirs(), and getTexturePath().
| std::string getTexturePath | ( | const std::string & | filename, |
| bool * | is_base_pack = nullptr ) |
References DIR_DELIM, g_texturename_to_path_cache, getImagePath(), getTextureDirs(), getTexturePath(), and porting::path_share.
Referenced by SourceImageCache::getOrLoad(), getTexturePath(), SourceImageCache::insert(), and TextureSource::isKnownSourceImage().