mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -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:
@ -43,7 +43,7 @@ bool Create(u32 adapter_index, bool enable_debug_layer)
|
||||
if (!s_d3d11_library.Open("d3d11.dll") ||
|
||||
!s_d3d11_library.GetSymbol("D3D11CreateDevice", &d3d11_create_device))
|
||||
{
|
||||
PanicAlertT("Failed to load d3d11.dll");
|
||||
PanicAlertFmtT("Failed to load d3d11.dll");
|
||||
s_d3d11_library.Close();
|
||||
return false;
|
||||
}
|
||||
@ -57,7 +57,7 @@ bool Create(u32 adapter_index, bool enable_debug_layer)
|
||||
dxgi_factory = D3DCommon::CreateDXGIFactory(enable_debug_layer);
|
||||
if (!dxgi_factory)
|
||||
{
|
||||
PanicAlertT("Failed to create DXGI factory");
|
||||
PanicAlertFmtT("Failed to create DXGI factory");
|
||||
D3DCommon::UnloadLibraries();
|
||||
s_d3d11_library.Close();
|
||||
return false;
|
||||
@ -113,7 +113,7 @@ bool Create(u32 adapter_index, bool enable_debug_layer)
|
||||
|
||||
if (FAILED(hr))
|
||||
{
|
||||
PanicAlertT(
|
||||
PanicAlertFmtT(
|
||||
"Failed to initialize Direct3D.\nMake sure your video card supports at least D3D 10.0");
|
||||
dxgi_factory.Reset();
|
||||
D3DCommon::UnloadLibraries();
|
||||
|
Reference in New Issue
Block a user