mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
General: Convert PanicAlerts over to fmt equivalent
Converts lingering panic alert calls over to the fmt-capable ones.
This commit is contained in:
@ -126,7 +126,7 @@ bool SwapChain::CreateSwapChain(bool stereo)
|
||||
|
||||
if (FAILED(hr))
|
||||
{
|
||||
PanicAlert("Failed to create swap chain with HRESULT %08X", hr);
|
||||
PanicAlertFmt("Failed to create swap chain with HRESULT {:08X}", hr);
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -139,7 +139,7 @@ bool SwapChain::CreateSwapChain(bool stereo)
|
||||
m_stereo = stereo;
|
||||
if (!CreateSwapChainBuffers())
|
||||
{
|
||||
PanicAlert("Failed to create swap chain buffers");
|
||||
PanicAlertFmt("Failed to create swap chain buffers");
|
||||
DestroySwapChainBuffers();
|
||||
m_swap_chain.Reset();
|
||||
return false;
|
||||
@ -187,7 +187,7 @@ void SwapChain::SetStereo(bool stereo)
|
||||
DestroySwapChain();
|
||||
if (!CreateSwapChain(stereo))
|
||||
{
|
||||
PanicAlert("Failed to switch swap chain stereo mode");
|
||||
PanicAlertFmt("Failed to switch swap chain stereo mode");
|
||||
CreateSwapChain(false);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user