From 14815d93302f9473a1d95e814b2f9af4c5defce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 29 Nov 2024 14:03:46 +0100 Subject: [PATCH] Fix wrong homebrew name generation --- Core/PSPLoaders.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Core/PSPLoaders.cpp b/Core/PSPLoaders.cpp index 57c8969d89..77f3cbfa42 100644 --- a/Core/PSPLoaders.cpp +++ b/Core/PSPLoaders.cpp @@ -441,13 +441,11 @@ bool Load_PSP_ELF_PBP(FileLoader *fileLoader, std::string *error_string) { std::string homebrewName = PSP_CoreParameter().fileToStart.ToVisualString(); std::size_t lslash = homebrewName.find_last_of('/'); -#if PPSSPP_PLATFORM(UWP) - if (lslash == homebrewName.npos) { - lslash = homebrewName.find_last_of("\\"); - } -#endif + std::size_t rslash = homebrewName.find_last_of('\\'); if (lslash != homebrewName.npos) homebrewName = homebrewName.substr(lslash + 1); + if (rslash != homebrewName.npos) + homebrewName = homebrewName.substr(rslash + 1); std::string homebrewTitle = g_paramSFO.GetValueString("TITLE"); if (homebrewTitle.empty()) homebrewTitle = homebrewName;