mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06: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:
@ -8,6 +8,7 @@
|
||||
#include <atomic>
|
||||
#include <cstddef>
|
||||
#include <fstream>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
@ -130,8 +131,9 @@ void CRenderFrame::OnDropFiles(wxDropFilesEvent& event)
|
||||
main_frame->GetMenuBar()->FindItem(IDM_RECORD_READ_ONLY)->Check(true);
|
||||
}
|
||||
|
||||
if (Movie::PlayInput(filepath))
|
||||
main_frame->BootGame("");
|
||||
std::optional<std::string> savestate_path;
|
||||
if (Movie::PlayInput(filepath, &savestate_path))
|
||||
main_frame->BootGame("", savestate_path);
|
||||
}
|
||||
else if (!Core::IsRunning())
|
||||
{
|
||||
|
Reference in New Issue
Block a user