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:
w1z7ard
2007-10-18 01:29:54 +00:00
parent ee2ae932e2
commit 5976cdbfc6
5 changed files with 56 additions and 3 deletions

View File

@ -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;
}