mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 12:35:27 +00:00
Stop saving random files to ./
This commit is contained in:
parent
74b5fb3ab4
commit
a250ab0af7
@ -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];
|
||||
|
||||
|
@ -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;
|
||||
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user