mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Added support for placing images in a 'custom' folder in the downloaded_media directory and view these using the media viewer
This commit is contained in:
parent
915ea23508
commit
00646abd17
|
@ -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<std::string> extList {".avi", ".mkv", ".mov", ".mp4", ".wmv"};
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue