Remove an unneeded global variable from Movie.cpp.

This commit is contained in:
Rachel Bryk 2015-02-13 20:11:44 -05:00
parent 4ceae57713
commit b66df8424a
1 changed files with 4 additions and 6 deletions

View File

@ -79,8 +79,6 @@ static u32 s_DSPcoefHash = 0;
static bool s_bRecordingFromSaveState = false; static bool s_bRecordingFromSaveState = false;
static bool s_bPolled = false; static bool s_bPolled = false;
static std::string tmpStateFilename = File::GetUserPath(D_STATESAVES_IDX) + "dtm.sav";
static std::string s_InputDisplay[8]; static std::string s_InputDisplay[8];
static GCManipFunction gcmfunc = nullptr; static GCManipFunction gcmfunc = nullptr;
@ -469,10 +467,10 @@ bool BeginRecordingInput(int controllers)
if (Core::IsRunningAndStarted()) if (Core::IsRunningAndStarted())
{ {
if (File::Exists(tmpStateFilename)) if (File::Exists(File::GetUserPath(D_STATESAVES_IDX) + "dtm.sav"))
File::Delete(tmpStateFilename); File::Delete(File::GetUserPath(D_STATESAVES_IDX) + "dtm.sav");
State::SaveAs(tmpStateFilename); State::SaveAs(File::GetUserPath(D_STATESAVES_IDX) + "dtm.sav");
s_bRecordingFromSaveState = true; 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. // 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.
@ -1242,7 +1240,7 @@ void SaveRecording(const std::string& filename)
if (success && s_bRecordingFromSaveState) if (success && s_bRecordingFromSaveState)
{ {
std::string stateFilename = filename + ".sav"; std::string stateFilename = filename + ".sav";
success = File::Copy(tmpStateFilename, stateFilename); success = File::Copy(File::GetUserPath(D_STATESAVES_IDX) + "dtm.sav", stateFilename);
} }
if (success) if (success)