mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix wrong homebrew name generation
This commit is contained in:
parent
720e0561b5
commit
14815d9330
1 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue