mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
Improve CVolumeStream to allow reading from physical drives again.
This commit is contained in:
parent
e9078ce3f0
commit
e5580af607
3 changed files with 32 additions and 33 deletions
|
@ -79,7 +79,7 @@ DiskUtils::OpticalMediaPtr DiskUtils::CreateOpticalMediaFromPath(const boost::fi
|
|||
#ifdef _WIN32
|
||||
else if(imagePath.string()[0] == '\\')
|
||||
{
|
||||
stream = std::make_shared<Framework::Win32::CVolumeStream>(imagePath.string()[4]);
|
||||
stream = std::make_shared<Framework::Win32::CVolumeStream>(imagePath.native().c_str());
|
||||
}
|
||||
#elif !defined(__ANDROID__) && !TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR
|
||||
else if(imagePath.string().find("/dev/") == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue