mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-30 15:32:47 +00:00
Removed filepath from State Save/Load OSD messages
Though less important compared to #11470, save states also show the full path in the OSD message and could potentially dox a streamer who is playing in Dolphin. This is a simple fix - it removes the path from the message and only displays the file name.
This commit is contained in:
parent
8032a71c4c
commit
ed121ee679
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <condition_variable>
|
#include <condition_variable>
|
||||||
|
#include <filesystem>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
@ -458,7 +459,8 @@ static void CompressAndDumpState(CompressAndDumpState_args& save_args)
|
|||||||
File::Rename(temp_filename, filename);
|
File::Rename(temp_filename, filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
Core::DisplayMessage(fmt::format("Saved State to {}", filename), 2000);
|
std::filesystem::path tempfilename(filename);
|
||||||
|
Core::DisplayMessage(fmt::format("Saved State to {}", tempfilename.filename().string()), 2000);
|
||||||
Host_UpdateMainFrame();
|
Host_UpdateMainFrame();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -688,7 +690,9 @@ void LoadAs(const std::string& filename)
|
|||||||
{
|
{
|
||||||
if (loadedSuccessfully)
|
if (loadedSuccessfully)
|
||||||
{
|
{
|
||||||
Core::DisplayMessage(fmt::format("Loaded state from {}", filename), 2000);
|
std::filesystem::path tempfilename(filename);
|
||||||
|
Core::DisplayMessage(
|
||||||
|
fmt::format("Loaded State from {}", tempfilename.filename().string()), 2000);
|
||||||
if (File::Exists(filename + ".dtm"))
|
if (File::Exists(filename + ".dtm"))
|
||||||
Movie::LoadInput(filename + ".dtm");
|
Movie::LoadInput(filename + ".dtm");
|
||||||
else if (!Movie::IsJustStartingRecordingInputFromSaveState() &&
|
else if (!Movie::IsJustStartingRecordingInputFromSaveState() &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user