diff --git a/es-app/src/FileData.cpp b/es-app/src/FileData.cpp index 0f18f0a3c..0510b9b4f 100644 --- a/es-app/src/FileData.cpp +++ b/es-app/src/FileData.cpp @@ -299,6 +299,12 @@ const std::string FileData::getTitleScreenPath() const return getMediafilePath("titlescreens"); } +const std::string FileData::getCustomImagePath() const +{ + // Return path to the custom image. + return getMediafilePath("custom"); +} + const std::string FileData::getVideoPath() const { const std::vector extList {".avi", ".mkv", ".mov", ".mp4", ".wmv"}; diff --git a/es-app/src/FileData.h b/es-app/src/FileData.h index d430f9328..46aed47e3 100644 --- a/es-app/src/FileData.h +++ b/es-app/src/FileData.h @@ -95,6 +95,7 @@ public: const std::string getMiximagePath() const; const std::string getScreenshotPath() const; const std::string getTitleScreenPath() const; + const std::string getCustomImagePath() const; const std::string getVideoPath() const; const std::string getManualPath() const; diff --git a/es-app/src/MediaViewer.cpp b/es-app/src/MediaViewer.cpp index 9c364df24..a975f7516 100644 --- a/es-app/src/MediaViewer.cpp +++ b/es-app/src/MediaViewer.cpp @@ -306,6 +306,9 @@ void MediaViewer::findMedia() if ((mediaFile = mGame->getMiximagePath()) != "") mImageFiles.push_back(std::make_pair(mediaFile, ImageInfo("MIXIMAGE", true))); + if ((mediaFile = mGame->getCustomImagePath()) != "") + mImageFiles.push_back(std::make_pair(mediaFile, ImageInfo("CUSTOM", true))); + if (!mImageFiles.empty()) mHasImages = true; }