mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-05 01:42:41 +00:00
Redesign the ability to load state at boot
BootParameters can now contain the path of a savestate to load at boot. Movie has been made to use this instead of poking at Core.cpp's state.
This commit is contained in:
parent
c9b78e23a2
commit
9dd88d76dd
13 changed files with 93 additions and 81 deletions
|
@ -382,8 +382,10 @@ bool BootCore(std::unique_ptr<BootParameters> boot)
|
|||
std::holds_alternative<BootParameters::Disc>(boot->parameters);
|
||||
if (load_ipl)
|
||||
{
|
||||
return Core::Init(std::make_unique<BootParameters>(BootParameters::IPL{
|
||||
StartUp.m_region, std::move(std::get<BootParameters::Disc>(boot->parameters))}));
|
||||
return Core::Init(std::make_unique<BootParameters>(
|
||||
BootParameters::IPL{StartUp.m_region,
|
||||
std::move(std::get<BootParameters::Disc>(boot->parameters))},
|
||||
boot->savestate_path));
|
||||
}
|
||||
return Core::Init(std::move(boot));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue