diff --git a/src/core/system.cpp b/src/core/system.cpp index 7c856ac99..e8307d892 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -4302,7 +4302,8 @@ bool System::SwitchMediaSubImage(u32 index) { Host::AddIconOSDMessage("MediaSwitchSubImage", ICON_FA_COMPACT_DISC, fmt::format(TRANSLATE_FS("System", "Failed to switch to subimage {} in '{}': {}."), - index + 1u, Path::GetFileName(image->GetPath()), error.GetDescription()), + index + 1u, FileSystem::GetDisplayNameFromPath(image->GetPath()), + error.GetDescription()), Host::OSD_INFO_DURATION); // restore old disc @@ -4313,10 +4314,10 @@ bool System::SwitchMediaSubImage(u32 index) return false; } - Host::AddIconOSDMessage("MediaSwitchSubImage", ICON_FA_COMPACT_DISC, - fmt::format(TRANSLATE_FS("System", "Switched to sub-image {} ({}) in '{}'."), subimage_title, - title, index + 1u, Path::GetFileName(CDROM::GetMediaPath())), - Host::OSD_INFO_DURATION); + Host::AddIconOSDMessage( + "MediaSwitchSubImage", ICON_FA_COMPACT_DISC, + fmt::format(TRANSLATE_FS("System", "Switched to sub-image {} ({}) in '{}'."), subimage_title, index + 1u, title), + Host::OSD_INFO_DURATION); return true; }