Skip to content

Commit 9bdb23d

Browse files
committed
removed printf and corrected fallback img that was not used correctly if user theme
1 parent ee5489b commit 9bdb23d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

RetroFE/Source/Graphics/Component/ReloadableMedia.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,12 +414,13 @@ void ReloadableMedia::reloadTexture( bool previousItem )
414414
}
415415
}
416416

417-
// if image and artwork was not specified, image fall back
417+
// if image and artwork was not specified, image fallback
418418
if(!loadedComponent_ && imageFallback_)
419419
{
420420
std::string imagePath;
421421
ImageBuilder imageBuild;
422-
imagePath = Utils::combinePath(Configuration::isUserLayout_?Configuration::userPath:Configuration::absolutePath, "collections", collectionName );
422+
//imagePath = Utils::combinePath(Configuration::isUserLayout_?Configuration::userPath:Configuration::absolutePath, "collections", collectionName );
423+
imagePath = Utils::combinePath(Configuration::absolutePath, "collections", collectionName ); // forcing absolutePath and folder "Collection" for backups
423424
imagePath = Utils::combinePath( imagePath, "system_artwork" );
424425
loadedComponent_ = imageBuild.CreateImage( imagePath, page, std::string("fallback"), scaleX_, scaleY_, ditheringAuthorized_ );
425426
}

RetroFE/Source/Graphics/Component/ScrollingList.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,8 @@ bool ScrollingList::allocateTexture( unsigned int index, Item *item )
726726

727727
// Image fallback
728728
if ( !t && imageType_.compare(std::string("null"))){
729-
imagePath = Utils::combinePath(Configuration::isUserLayout_?Configuration::userPath:Configuration::absolutePath, "collections", collectionName );
729+
//imagePath = Utils::combinePath(Configuration::isUserLayout_?Configuration::userPath:Configuration::absolutePath, "collections", collectionName );
730+
imagePath = Utils::combinePath(Configuration::absolutePath, "collections", collectionName ); // forcing absolutePath and folder "Collection" for backups
730731
imagePath = Utils::combinePath( imagePath, "system_artwork" );
731732
t = imageBuild.CreateImage( imagePath, page, std::string("fallback"), scaleX_, scaleY_, ditheringAuthorized_ );
732733
}

RetroFE/Source/Graphics/PageBuilder.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ Page *PageBuilder::buildPage( std::string collectionName )
100100
}
101101
layoutFile = Utils::combinePath(layoutPath, layoutPage + ".xml");
102102

103-
printf("In %s, layoutFile is %s \n", __func__, layoutFile.c_str());
104-
105103
if ( screenWidth_*3/4 == screenHeight_ )
106104
layoutFileAspect = Utils::combinePath(layoutPath, layoutPage + " 4x3.xml");
107105
else if ( screenWidth_*4/3 == screenHeight_ )

0 commit comments

Comments
 (0)