Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool CMediaSetManager::loadMediaSet(const char* name)
- {
- if(Context->Settings->MediaSet)
- {
- if(Context->Settings->MediaSet->getName() == name)
- {
- Context->Device->getLogger()->log("Requested media set already in memory", name, ELL_INFORMATION);
- return true;
- }
- Context->Device->getLogger()->log("Unloading media set", Context->Settings->MediaSet->getName().c_str(), ELL_INFORMATION);
- //Context->Device->getFileSystem()->removeFileArchive(MediaSets[Context->Settings->MediaSet->getName()]);
- delete Context->Settings->MediaSet;
- }
- Context->Device->getLogger()->log("Loading media set", MediaSets[name].c_str(), ELL_INFORMATION);
- //bool success= Context->Device->getFileSystem()->addFileArchive(MediaSets[name]);
- Context->Settings->MediaSet= new CMediaSet(Context, name, MediaSets[name].c_str());
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement