mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
Merge pull request #3341 from spxtr/discio
DQt2: Repackage the unique_ptr in GameFile into a QSharedPointer
This commit is contained in:
commit
13296cef77
1 changed files with 2 additions and 1 deletions
|
@ -139,7 +139,8 @@ bool GameFile::TryLoadCache()
|
|||
|
||||
bool GameFile::TryLoadVolume()
|
||||
{
|
||||
QSharedPointer<DiscIO::IVolume> volume(DiscIO::CreateVolumeFromFilename(m_path.toStdString()));
|
||||
QSharedPointer<DiscIO::IVolume> volume(
|
||||
DiscIO::CreateVolumeFromFilename(m_path.toStdString()).release());
|
||||
if (volume == nullptr)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue