System: Fix subimage change OSD message
This commit is contained in:
parent
be7cff5964
commit
035762af94
|
@ -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,9 +4314,9 @@ 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::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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue