mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Boot: Re-use the disc volume
Saves some disc IO.
This commit is contained in:
@ -336,10 +336,10 @@ bool CBoot::BootUp(std::unique_ptr<BootParameters> boot)
|
|||||||
struct BootTitle
|
struct BootTitle
|
||||||
{
|
{
|
||||||
BootTitle() : config(SConfig::GetInstance()) {}
|
BootTitle() : config(SConfig::GetInstance()) {}
|
||||||
bool operator()(const BootParameters::Disc& disc) const
|
bool operator()(BootParameters::Disc& disc) const
|
||||||
{
|
{
|
||||||
NOTICE_LOG(BOOT, "Booting from disc: %s", disc.path.c_str());
|
NOTICE_LOG(BOOT, "Booting from disc: %s", disc.path.c_str());
|
||||||
const DiscIO::Volume* volume = SetDisc(DiscIO::CreateVolumeFromFilename(disc.path));
|
const DiscIO::Volume* volume = SetDisc(std::move(disc.volume));
|
||||||
|
|
||||||
if (!volume)
|
if (!volume)
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user