mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
Allow opening CHD files.
This commit is contained in:
parent
4286f3dc2c
commit
2e9aaca2c9
5 changed files with 143 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
#include "make_unique.h"
|
||||
#include "stricmp.h"
|
||||
#include "DiskUtils.h"
|
||||
#include "discimages/ChdImageStream.h"
|
||||
#include "discimages/CsoImageStream.h"
|
||||
#include "discimages/CueSheet.h"
|
||||
#include "discimages/IszImageStream.h"
|
||||
|
@ -90,7 +91,7 @@ static DiskUtils::OpticalMediaPtr CreateOpticalMediaFromMds(const fs::path& imag
|
|||
|
||||
const DiskUtils::ExtensionList& DiskUtils::GetSupportedExtensions()
|
||||
{
|
||||
static auto extensionList = ExtensionList{".iso", ".mds", ".isz", ".cso", ".cue"};
|
||||
static auto extensionList = ExtensionList{".iso", ".mds", ".isz", ".cso", ".cue", ".chd"};
|
||||
return extensionList;
|
||||
}
|
||||
|
||||
|
@ -106,6 +107,10 @@ DiskUtils::OpticalMediaPtr DiskUtils::CreateOpticalMediaFromPath(const fs::path&
|
|||
{
|
||||
stream = std::make_shared<CIszImageStream>(CreateImageStream(imagePath));
|
||||
}
|
||||
else if(!stricmp(extension.c_str(), ".chd"))
|
||||
{
|
||||
stream = std::make_shared<CChdImageStream>(CreateImageStream(imagePath));
|
||||
}
|
||||
else if(!stricmp(extension.c_str(), ".cso"))
|
||||
{
|
||||
stream = std::make_shared<CCsoImageStream>(CreateImageStream(imagePath));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue