Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
SoundFallbackPathProvider Class Reference

#include <sound.h>

+ Inheritance diagram for SoundFallbackPathProvider:
+ Collaboration diagram for SoundFallbackPathProvider:

Public Member Functions

virtual ~SoundFallbackPathProvider ()=default
 
std::vector< std::string > getLocalFallbackPathsForSoundname (const std::string &name)
 

Protected Member Functions

virtual void addThePaths (const std::string &name, std::vector< std::string > &paths)
 
void addAllAlternatives (const std::string &common, std::vector< std::string > &paths)
 

Private Attributes

std::unordered_set< std::string > m_done_names
 

Constructor & Destructor Documentation

◆ ~SoundFallbackPathProvider()

virtual SoundFallbackPathProvider::~SoundFallbackPathProvider ( )
virtualdefault

Member Function Documentation

◆ addAllAlternatives()

void SoundFallbackPathProvider::addAllAlternatives ( const std::string &  common,
std::vector< std::string > &  paths 
)
protected

Referenced by addThePaths(), and MenuMusicFetcher::addThePaths().

+ Here is the caller graph for this function:

◆ addThePaths()

void SoundFallbackPathProvider::addThePaths ( const std::string &  name,
std::vector< std::string > &  paths 
)
protectedvirtual

Reimplemented in MenuMusicFetcher.

References addAllAlternatives(), DIR_DELIM, porting::path_share, and porting::path_user.

Referenced by getLocalFallbackPathsForSoundname().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLocalFallbackPathsForSoundname()

std::vector< std::string > SoundFallbackPathProvider::getLocalFallbackPathsForSoundname ( const std::string &  name)

References addThePaths(), and m_done_names.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_done_names

std::unordered_set<std::string> SoundFallbackPathProvider::m_done_names
private

The documentation for this class was generated from the following files: