mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Movie: reintroduce a local variable
This commit is contained in:
parent
6558704403
commit
a7cc36e711
@ -467,10 +467,11 @@ bool BeginRecordingInput(int controllers)
|
||||
|
||||
if (Core::IsRunningAndStarted())
|
||||
{
|
||||
if (File::Exists(File::GetUserPath(D_STATESAVES_IDX) + "dtm.sav"))
|
||||
File::Delete(File::GetUserPath(D_STATESAVES_IDX) + "dtm.sav");
|
||||
const std::string save_path = File::GetUserPath(D_STATESAVES_IDX) + "dtm.sav";
|
||||
if (File::Exists(save_path))
|
||||
File::Delete(save_path);
|
||||
|
||||
State::SaveAs(File::GetUserPath(D_STATESAVES_IDX) + "dtm.sav");
|
||||
State::SaveAs(save_path);
|
||||
s_bRecordingFromSaveState = true;
|
||||
|
||||
// This is only done here if starting from save state because otherwise we won't have the titleid. Otherwise it's set in WII_IPC_HLE_Device_es.cpp.
|
||||
|
Loading…
Reference in New Issue
Block a user