History Viewer: Add save state to all movies when power on ram state is random
(Temporary fix until random ram is properly supported by movies)
This commit is contained in:
parent
3c31153acc
commit
937f0c68ac
1 changed files with 2 additions and 2 deletions
|
@ -238,8 +238,8 @@ bool MovieRecorder::CreateMovie(string movieFile, std::deque<RewindData> &data,
|
|||
if(startPosition < data.size() && endPosition <= data.size() && _writer->Initialize(_filename)) {
|
||||
vector<shared_ptr<BaseControlDevice>> devices = _console->GetControlManager()->GetControlDevices();
|
||||
|
||||
if(startPosition > 0 || _console->GetRomInfo().HasBattery) {
|
||||
//Create a movie from a savestate if we don't start from the beginning (or if the game has save ram)
|
||||
if(startPosition > 0 || _console->GetRomInfo().HasBattery || _console->GetSettings()->GetRamPowerOnState() == RamPowerOnState::Random) {
|
||||
//Create a movie from a savestate if we don't start from the beginning (or if the game has save ram, or if the power on ram state is random)
|
||||
_hasSaveState = true;
|
||||
_saveStateData = stringstream();
|
||||
_console->GetSaveStateManager()->GetSaveStateHeader(_saveStateData);
|
||||
|
|
Loading…
Add table
Reference in a new issue