Repackage the unique_ptr in GameFile into a QSharedPointer.
This commit is contained in:
parent
749fc3bccc
commit
f2e9321591
|
@ -139,7 +139,8 @@ bool GameFile::TryLoadCache()
|
||||||
|
|
||||||
bool GameFile::TryLoadVolume()
|
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)
|
if (volume == nullptr)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue