From 139d4fc76e4ddf45179ca5ec5e42c52ef513ea4d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 2 Dec 2020 13:17:27 -0500 Subject: General: Convert PanicAlerts over to fmt equivalent Converts lingering panic alert calls over to the fmt-capable ones. --- Source/Core/VideoBackends/Software/SWOGLWindow.cpp | 2 +- Source/Core/VideoBackends/Software/SWmain.cpp | 2 +- Source/Core/VideoBackends/Software/Tev.cpp | 2 +- Source/Core/VideoBackends/Software/TextureEncoder.cpp | 12 ++++++------ Source/Core/VideoBackends/Software/TransformUnit.cpp | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'Source/Core/VideoBackends/Software') diff --git a/Source/Core/VideoBackends/Software/SWOGLWindow.cpp b/Source/Core/VideoBackends/Software/SWOGLWindow.cpp index 1a9fe69cf6..b5b787d383 100644 --- a/Source/Core/VideoBackends/Software/SWOGLWindow.cpp +++ b/Source/Core/VideoBackends/Software/SWOGLWindow.cpp @@ -20,7 +20,7 @@ std::unique_ptr SWOGLWindow::Create(const WindowSystemInfo& wsi) std::unique_ptr window = std::unique_ptr(new SWOGLWindow()); if (!window->Initialize(wsi)) { - PanicAlert("Failed to create OpenGL window"); + PanicAlertFmt("Failed to create OpenGL window"); return nullptr; } diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp index eb03d4796c..eae1659b8d 100644 --- a/Source/Core/VideoBackends/Software/SWmain.cpp +++ b/Source/Core/VideoBackends/Software/SWmain.cpp @@ -112,7 +112,7 @@ bool VideoSoftware::Initialize(const WindowSystemInfo& wsi) !g_renderer->Initialize() || !g_framebuffer_manager->Initialize() || !g_texture_cache->Initialize()) { - PanicAlert("Failed to initialize renderer classes"); + PanicAlertFmt("Failed to initialize renderer classes"); Shutdown(); return false; } diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp index c25e45b230..fed65d2bec 100644 --- a/Source/Core/VideoBackends/Software/Tev.cpp +++ b/Source/Core/VideoBackends/Software/Tev.cpp @@ -504,7 +504,7 @@ void Tev::Indirect(unsigned int stageNum, s32 s, s32 t) AlphaBump = AlphaBump & 0xf8; break; default: - PanicAlert("Tev::Indirect"); + PanicAlertFmt("Tev::Indirect"); return; } diff --git a/Source/Core/VideoBackends/Software/TextureEncoder.cpp b/Source/Core/VideoBackends/Software/TextureEncoder.cpp index 6ed13a0229..ff1dd97b96 100644 --- a/Source/Core/VideoBackends/Software/TextureEncoder.cpp +++ b/Source/Core/VideoBackends/Software/TextureEncoder.cpp @@ -504,7 +504,7 @@ static void EncodeRGBA6(u8* dst, const u8* src, EFBCopyFormat format, bool yuv) break; default: - PanicAlert("Unknown texture copy format: 0x%x\n", static_cast(format)); + PanicAlertFmt("Unknown texture copy format: {:#x}\n", format); break; } } @@ -743,7 +743,7 @@ static void EncodeRGBA6halfscale(u8* dst, const u8* src, EFBCopyFormat format, b break; default: - PanicAlert("Unknown texture copy format: 0x%x\n", static_cast(format)); + PanicAlertFmt("Unknown texture copy format: {:#x}\n", format); break; } } @@ -960,7 +960,7 @@ static void EncodeRGB8(u8* dst, const u8* src, EFBCopyFormat format, bool yuv) break; default: - PanicAlert("Unknown texture copy format: 0x%x\n", static_cast(format)); + PanicAlertFmt("Unknown texture copy format: {:#x}\n", format); break; } } @@ -1192,7 +1192,7 @@ static void EncodeRGB8halfscale(u8* dst, const u8* src, EFBCopyFormat format, bo break; default: - PanicAlert("Unknown texture copy format: 0x%x\n", static_cast(format)); + PanicAlertFmt("Unknown texture copy format: {:#x}\n", format); break; } } @@ -1300,7 +1300,7 @@ static void EncodeZ24(u8* dst, const u8* src, EFBCopyFormat format) break; default: - PanicAlert("Unknown texture copy format: 0x%x\n", static_cast(format)); + PanicAlertFmt("Unknown texture copy format: {:#x}\n", format); break; } } @@ -1414,7 +1414,7 @@ static void EncodeZ24halfscale(u8* dst, const u8* src, EFBCopyFormat format) break; default: - PanicAlert("Unknown texture copy format: 0x%x\n", static_cast(format)); + PanicAlertFmt("Unknown texture copy format: {:#x}\n", format); break; } } diff --git a/Source/Core/VideoBackends/Software/TransformUnit.cpp b/Source/Core/VideoBackends/Software/TransformUnit.cpp index 26c718d506..76712c0939 100644 --- a/Source/Core/VideoBackends/Software/TransformUnit.cpp +++ b/Source/Core/VideoBackends/Software/TransformUnit.cpp @@ -260,7 +260,7 @@ static float CalculateLightAttn(const LightPointer* light, Vec3* _ldir, const Ve break; } default: - PanicAlert("LightColor"); + PanicAlertFmt("LightColor"); } return attn; -- cgit v1.2.3