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:
@@ -67,12 +67,15 @@ struct BootParameters
|
||||
std::string dff_path;
|
||||
};
|
||||
|
||||
static std::unique_ptr<BootParameters> GenerateFromFile(const std::string& path);
|
||||
static std::unique_ptr<BootParameters>
|
||||
GenerateFromFile(const std::string& boot_path,
|
||||
const std::optional<std::string>& savestate_path = {});
|
||||
|
||||
using Parameters = std::variant<Disc, Executable, DiscIO::WiiWAD, NANDTitle, IPL, DFF>;
|
||||
BootParameters(Parameters&& parameters_);
|
||||
BootParameters(Parameters&& parameters_, const std::optional<std::string>& savestate_path_ = {});
|
||||
|
||||
Parameters parameters;
|
||||
std::optional<std::string> savestate_path;
|
||||
};
|
||||
|
||||
class CBoot
|
||||
|
||||
Reference in New Issue
Block a user