diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2026-06-29 22:15:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-29 22:15:49 +0200 |
| commit | 32cd349207e84002c34aab0c5e5e5c06d0d4040f (patch) | |
| tree | 63b16ad12f2c2cc47671d6bc437ecb126bec61dc | |
| parent | e2ab15aa23fd05f5f90f71552ee33857bad5775e (diff) | |
| parent | 2aba483a056aa35e0443de8e4da98a37411a7f1e (diff) | |
Merge pull request #14708 from JosJuice/state-path-encoding
State: Use proper path encoding conversion for OSD messages
| -rw-r--r-- | Source/Core/Core/State.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/Core/Core/State.cpp b/Source/Core/Core/State.cpp index 345e1537e5..765e0d6906 100644 --- a/Source/Core/Core/State.cpp +++ b/Source/Core/Core/State.cpp @@ -28,6 +28,7 @@ #include "Common/IOFile.h" #include "Common/Logging/Log.h" #include "Common/MsgHandler.h" +#include "Common/StringUtil.h" #include "Common/Thread.h" #include "Common/TimeUtil.h" #include "Common/TransferableSharedMutex.h" @@ -463,8 +464,9 @@ static void CompressAndDumpState(Core::System& system, const CompressAndDumpStat } else { - const std::filesystem::path temp_path(filename); - Core::DisplayMessage(fmt::format("Saved State to {}", temp_path.filename()), 2000); + const std::filesystem::path temp_path(StringToPath(filename)); + Core::DisplayMessage(fmt::format("Saved State to {}", PathToString(temp_path.filename())), + 2000); } } @@ -841,8 +843,9 @@ static void LoadAsFromCore(Core::System& system, std::string filename) { if (loaded_successfully) { - const std::filesystem::path temp_filename(filename); - Core::DisplayMessage(fmt::format("Loaded State from {}", temp_filename.filename()), 2000); + const std::filesystem::path temp_filename(StringToPath(filename)); + Core::DisplayMessage( + fmt::format("Loaded State from {}", PathToString(temp_filename.filename())), 2000); if (File::Exists(filename + ".dtm")) { movie.LoadInput(filename + ".dtm"); |
