From e8a516529bab045e1f90e40472978c2ac3c67011 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 7 Jun 2019 23:02:29 +0200 Subject: [PATCH] fix games.yml --- rpcs3/rpcs3qt/game_list_frame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/rpcs3qt/game_list_frame.cpp b/rpcs3/rpcs3qt/game_list_frame.cpp index 66277cfa3a..e3e05089fc 100644 --- a/rpcs3/rpcs3qt/game_list_frame.cpp +++ b/rpcs3/rpcs3qt/game_list_frame.cpp @@ -430,7 +430,8 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter) for (auto pair : YAML::Load(fs::file{fs::get_config_dir() + "/games.yml", fs::read + fs::create}.to_string())) { - const std::string game_dir = pair.second.Scalar(); + std::string game_dir = pair.second.Scalar(); + game_dir.resize(game_dir.find_last_not_of('/') + 1); if (fs::is_file(game_dir + "/PS3_DISC.SFB")) { @@ -439,7 +440,6 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter) else { path_list.push_back(game_dir); - path_list.back().resize(path_list.back().find_last_not_of('/') + 1); } }