This commit is contained in:
milkdropper.com
2020-08-15 18:36:45 +04:00
committed by milkdropper
parent ffdb4806a7
commit 15230781e1
6 changed files with 38 additions and 22 deletions

View File

@ -149,11 +149,14 @@ const std::string & PresetLoader::getPresetName ( PresetIndex index ) const
return _presetNames[index];
}
// Get vector of preset names
const std::vector<std::string> &PresetLoader::getPresetNames() const
{
return _presetNames;
}
// Get the preset index given a name
const unsigned int PresetLoader::getPresetIndex(std::string &name) const
{
//Need a better structure than a vector for reverse lookup