mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
Fix string formatting warnings.
This commit is contained in:
parent
fb7a8886f1
commit
e4735bcf7a
|
@ -61,7 +61,7 @@ bool CDImageMemory::CopyImage(CDImage* image, ProgressCallback* progress)
|
|||
static_cast<u8*>(std::malloc(static_cast<size_t>(RAW_SECTOR_SIZE) * static_cast<size_t>(m_memory_sectors)));
|
||||
if (!m_memory)
|
||||
{
|
||||
progress->DisplayFormattedModalError("Failed to allocate memory for %llu sectors", m_memory_sectors);
|
||||
progress->DisplayFormattedModalError("Failed to allocate memory for %u sectors", m_memory_sectors);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ bool HostInterface::BootSystem(const SystemBootParameters& parameters)
|
|||
|
||||
if (!AcquireHostDisplay())
|
||||
{
|
||||
ReportFormattedError(g_host_interface->TranslateString("System", "Failed to acquire host display."));
|
||||
ReportError(g_host_interface->TranslateString("System", "Failed to acquire host display."));
|
||||
OnSystemDestroyed();
|
||||
return false;
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ bool HostInterface::BootSystem(const SystemBootParameters& parameters)
|
|||
{
|
||||
if (!System::IsStartupCancelled())
|
||||
{
|
||||
ReportFormattedError(
|
||||
ReportError(
|
||||
g_host_interface->TranslateString("System", "System failed to boot. The log may contain more information."));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue