From c9d07ab5cdb1f3d4c5f48005fd0850fec3a2ecea Mon Sep 17 00:00:00 2001 From: "Herman S." <429230+has207@users.noreply.github.com> Date: Sat, 17 Jan 2026 21:54:12 +0900 Subject: [PATCH] [App] Fix UTF8 handling for paths in recent.toml --- src/xenia/app/emulator_window.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/xenia/app/emulator_window.cc b/src/xenia/app/emulator_window.cc index a6e2cf91c..fc52be189 100644 --- a/src/xenia/app/emulator_window.cc +++ b/src/xenia/app/emulator_window.cc @@ -2621,16 +2621,18 @@ void EmulatorWindow::LoadRecentlyLaunchedTitles() { std::string title_name = entry_table->get_as("title_name")->get(); - std::string path = entry_table->get_as("path")->get(); + std::string path_str = entry_table->get_as("path")->get(); std::time_t last_run_time = entry_table->get_as("last_run_time")->get(); std::error_code ec = {}; - if (path.empty() || !std::filesystem::exists(path, ec)) { + auto file_path = xe::to_path(path_str); + if (path_str.empty() || !std::filesystem::exists(file_path, ec)) { continue; } - recently_launched_titles_.push_back({title_name, path, last_run_time}); + recently_launched_titles_.push_back( + {title_name, file_path, last_run_time}); } } }