mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 23:25:41 +00:00
MemoryCard: Make formatting OSD message translatable
This commit is contained in:
parent
d86fc03ecb
commit
24c373245e
|
@ -256,12 +256,10 @@ std::unique_ptr<MemoryCard> MemoryCard::Open(std::string_view filename)
|
|||
mc->m_filename = filename;
|
||||
if (!mc->LoadFromFile())
|
||||
{
|
||||
SmallString message;
|
||||
message.AppendString("Memory card at '");
|
||||
message.AppendString(filename.data(), static_cast<u32>(filename.length()));
|
||||
message.AppendString("' could not be read, formatting.");
|
||||
Log_ErrorPrint(message);
|
||||
g_host_interface->AddOSDMessage(message.GetCharArray(), 5.0f);
|
||||
Log_InfoPrintf("Memory card at '%s' could not be read, formatting.", mc->m_filename.c_str());
|
||||
g_host_interface->AddFormattedOSDMessage(
|
||||
5.0f, g_host_interface->TranslateString("OSDMessage", "Memory card at '%s' could not be read, formatting."),
|
||||
mc->m_filename.c_str());
|
||||
mc->Format();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue