mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Boot: Re-use the disc volume
Saves some disc IO.
This commit is contained in:
parent
6f6a18b1b0
commit
d0169fe8db
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue