mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-12 23:48:58 +01: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;
|
bool g_bPolled = false;
|
||||||
int g_currentSaveVersion = 0;
|
int g_currentSaveVersion = 0;
|
||||||
|
|
||||||
std::string tmpStateFilename = "dtm.sav";
|
std::string tmpStateFilename = File::GetUserPath(D_STATESAVES_IDX) + "dtm.sav";
|
||||||
|
|
||||||
std::string g_InputDisplay[8];
|
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);
|
std::lock_guard<std::mutex> lk(g_cs_undo_load_buffer);
|
||||||
SaveToBuffer(g_undo_load_buffer);
|
SaveToBuffer(g_undo_load_buffer);
|
||||||
if (Movie::IsRecordingInput() || Movie::IsPlayingInput())
|
if (Movie::IsRecordingInput() || Movie::IsPlayingInput())
|
||||||
Movie::SaveRecording("undo.dtm");
|
Movie::SaveRecording((File::GetUserPath(D_STATESAVES_IDX) + "undo.dtm").c_str());
|
||||||
else if (File::Exists("undo.dtm"))
|
else if (File::Exists(File::GetUserPath(D_STATESAVES_IDX) +"undo.dtm"))
|
||||||
File::Delete("undo.dtm");
|
File::Delete(File::GetUserPath(D_STATESAVES_IDX) + "undo.dtm");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool loaded = false;
|
bool loaded = false;
|
||||||
@ -612,11 +612,11 @@ void UndoLoadState()
|
|||||||
std::lock_guard<std::mutex> lk(g_cs_undo_load_buffer);
|
std::lock_guard<std::mutex> lk(g_cs_undo_load_buffer);
|
||||||
if (!g_undo_load_buffer.empty())
|
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);
|
LoadFromBuffer(g_undo_load_buffer);
|
||||||
if (Movie::IsRecordingInput() || Movie::IsPlayingInput())
|
if (Movie::IsRecordingInput() || Movie::IsPlayingInput())
|
||||||
Movie::LoadInput("undo.dtm");
|
Movie::LoadInput((File::GetUserPath(D_STATESAVES_IDX) + "undo.dtm").c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user