mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-07-11 01:24:22 +02:00
State: Use proper path encoding conversion for OSD messages
Otherwise Windows will use the system code page.
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
#include "Common/IOFile.h"
|
#include "Common/IOFile.h"
|
||||||
#include "Common/Logging/Log.h"
|
#include "Common/Logging/Log.h"
|
||||||
#include "Common/MsgHandler.h"
|
#include "Common/MsgHandler.h"
|
||||||
|
#include "Common/StringUtil.h"
|
||||||
#include "Common/Thread.h"
|
#include "Common/Thread.h"
|
||||||
#include "Common/TimeUtil.h"
|
#include "Common/TimeUtil.h"
|
||||||
#include "Common/TransferableSharedMutex.h"
|
#include "Common/TransferableSharedMutex.h"
|
||||||
@@ -463,8 +464,9 @@ static void CompressAndDumpState(Core::System& system, const CompressAndDumpStat
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const std::filesystem::path temp_path(filename);
|
const std::filesystem::path temp_path(StringToPath(filename));
|
||||||
Core::DisplayMessage(fmt::format("Saved State to {}", temp_path.filename()), 2000);
|
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)
|
if (loaded_successfully)
|
||||||
{
|
{
|
||||||
const std::filesystem::path temp_filename(filename);
|
const std::filesystem::path temp_filename(StringToPath(filename));
|
||||||
Core::DisplayMessage(fmt::format("Loaded State from {}", temp_filename.filename()), 2000);
|
Core::DisplayMessage(
|
||||||
|
fmt::format("Loaded State from {}", PathToString(temp_filename.filename())), 2000);
|
||||||
if (File::Exists(filename + ".dtm"))
|
if (File::Exists(filename + ".dtm"))
|
||||||
{
|
{
|
||||||
movie.LoadInput(filename + ".dtm");
|
movie.LoadInput(filename + ".dtm");
|
||||||
|
|||||||
Reference in New Issue
Block a user