System: Simplify save state booting

Fixes memory card warning messages on load state.
This commit is contained in:
Connor McLaughlin
2020-05-27 02:01:09 +10:00
parent d2c7639dd8
commit b17a5832e5
5 changed files with 95 additions and 61 deletions

View File

@ -32,12 +32,13 @@ struct SystemBootParameters
{
SystemBootParameters();
SystemBootParameters(std::string filename_);
SystemBootParameters(const SystemBootParameters& copy);
~SystemBootParameters();
std::string filename;
std::string state_filename;
std::optional<bool> override_fast_boot;
std::optional<bool> override_fullscreen;
std::unique_ptr<ByteStream> state_stream;
};
class System
@ -143,6 +144,7 @@ public:
private:
System(HostInterface* host_interface);
bool DoLoadState(ByteStream* stream, bool init_components);
bool DoState(StateWrapper& sw);
bool CreateGPU(GPURenderer renderer);