mirror of
https://github.com/libretro/Mesen.git
synced 2025-01-31 13:52:19 +00:00
Fixed movies when recording "from start" a game that has different soft/hard reset behavior. (Recording/Played a movie from the start now forces a hard reset)
This commit is contained in:
parent
c25ef7f07a
commit
3daf877133
@ -83,12 +83,12 @@ wstring Console::GetROMPath()
|
||||
return filepath;
|
||||
}
|
||||
|
||||
void Console::Reset()
|
||||
void Console::Reset(bool softReset)
|
||||
{
|
||||
Movie::Stop();
|
||||
if(Instance) {
|
||||
Console::Pause();
|
||||
Instance->ResetComponents(true);
|
||||
Instance->ResetComponents(softReset);
|
||||
Console::Resume();
|
||||
}
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ class Console
|
||||
~Console();
|
||||
void Run();
|
||||
void Stop();
|
||||
static void Reset();
|
||||
static void Reset(bool softReset = true);
|
||||
|
||||
//Used to pause the emu loop to perform thread-safe operations
|
||||
static void Pause();
|
||||
|
@ -77,7 +77,7 @@ void Movie::StartRecording(wstring filename, bool reset)
|
||||
Reset();
|
||||
|
||||
if(reset) {
|
||||
Console::Reset();
|
||||
Console::Reset(false);
|
||||
} else {
|
||||
Console::SaveState(_startState);
|
||||
}
|
||||
@ -114,7 +114,7 @@ void Movie::PlayMovie(wstring filename)
|
||||
//Restore state if one was present in the movie
|
||||
Console::LoadState(_startState);
|
||||
} else {
|
||||
Console::Reset();
|
||||
Console::Reset(false);
|
||||
}
|
||||
_playing = true;
|
||||
Console::Resume();
|
||||
|
Loading…
x
Reference in New Issue
Block a user