Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Stop saving random files to ./
  • Loading branch information
RachelBryk committed Nov 3, 2013
1 parent 74b5fb3 commit a250ab0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Source/Core/Core/Src/Movie.cpp
Expand Up @@ -66,7 +66,7 @@ bool g_bRecordingFromSaveState = false;
bool g_bPolled = false;
int g_currentSaveVersion = 0;

std::string tmpStateFilename = "dtm.sav";
std::string tmpStateFilename = File::GetUserPath(D_STATESAVES_IDX) + "dtm.sav";

std::string g_InputDisplay[8];

Expand Down
10 changes: 5 additions & 5 deletions Source/Core/Core/Src/State.cpp
Expand Up @@ -437,9 +437,9 @@ void LoadAs(const std::string& filename)
std::lock_guard<std::mutex> lk(g_cs_undo_load_buffer);
SaveToBuffer(g_undo_load_buffer);
if (Movie::IsRecordingInput() || Movie::IsPlayingInput())
Movie::SaveRecording("undo.dtm");
else if (File::Exists("undo.dtm"))
File::Delete("undo.dtm");
Movie::SaveRecording((File::GetUserPath(D_STATESAVES_IDX) + "undo.dtm").c_str());
else if (File::Exists(File::GetUserPath(D_STATESAVES_IDX) +"undo.dtm"))
File::Delete(File::GetUserPath(D_STATESAVES_IDX) + "undo.dtm");
}

bool loaded = false;
Expand Down Expand Up @@ -612,11 +612,11 @@ void UndoLoadState()
std::lock_guard<std::mutex> lk(g_cs_undo_load_buffer);
if (!g_undo_load_buffer.empty())
{
if (File::Exists("undo.dtm") || (!Movie::IsRecordingInput() && !Movie::IsPlayingInput()))
if (File::Exists(File::GetUserPath(D_STATESAVES_IDX) + "undo.dtm") || (!Movie::IsRecordingInput() && !Movie::IsPlayingInput()))
{
LoadFromBuffer(g_undo_load_buffer);
if (Movie::IsRecordingInput() || Movie::IsPlayingInput())
Movie::LoadInput("undo.dtm");
Movie::LoadInput((File::GetUserPath(D_STATESAVES_IDX) + "undo.dtm").c_str());
}
else
{
Expand Down

0 comments on commit a250ab0

Please sign in to comment.