overrwrite video paths

This commit is contained in:
Don Honerbrink
2015-07-02 15:22:14 -05:00
parent a2512e5b7e
commit e505d702df

View File

@@ -167,12 +167,12 @@ void ReloadableMedia::reloadTexture()
if(systemMode_) if(systemMode_)
{ {
// only look through the master collection for the system artifact // only look through the master collection for the system artifact
loadedComponent_ = findComponent(collectionName, type_, type_, true); loadedComponent_ = findComponent(collectionName, "video", "video", true);
} }
else else
{ {
// check the master collection for the artifact // check the master collection for the artifact
loadedComponent_ = findComponent(collectionName, type_, basename, false); loadedComponent_ = findComponent(collectionName, "video", basename, false);
if(!loadedComponent_ && selectedItem->collectionInfo->hasSubcollections()) if(!loadedComponent_ && selectedItem->collectionInfo->hasSubcollections())
{ {
@@ -184,7 +184,7 @@ void ReloadableMedia::reloadTexture()
else else
{ {
// item is a submenu, check the subcollection for system artwork artifacts // item is a submenu, check the subcollection for system artwork artifacts
loadedComponent_ = findComponent(selectedItem->collectionInfo->name, type_, type_, true); loadedComponent_ = findComponent(selectedItem->collectionInfo->name, "video", "video", true);
} }
} }
} }
@@ -285,6 +285,7 @@ Component *ReloadableMedia::findComponent(std::string collection, std::string ty
// check the system folder // check the system folder
config_.getMediaPropertyAbsolutePath(collection, type, systemMode, imagePath); config_.getMediaPropertyAbsolutePath(collection, type, systemMode, imagePath);
std::cout << "searching path: " << imagePath << " =>" << basename << std::endl;
if(type == "video") if(type == "video")
{ {