mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-22 10:25:43 +00:00
added some top level functionality for preset insertion / selection in projectM.hpp
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@584 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
@ -156,3 +156,13 @@ void PresetLoader::handleDirectoryError()
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
unsigned int PresetLoader::addPresetURL(const std::string & url) {
|
||||
m_entries.push_back(url);
|
||||
|
||||
/// @bug strip url out of preset name
|
||||
m_presetNames.push_back(url);
|
||||
return m_entries.size()-1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user