General: Convert PanicAlerts over to fmt equivalent

Converts lingering panic alert calls over to the fmt-capable ones.
This commit is contained in:
Lioncash
2020-12-02 13:17:27 -05:00
parent 5abae61a8c
commit 139d4fc76e
45 changed files with 206 additions and 195 deletions

View File

@ -20,7 +20,7 @@ std::unique_ptr<SWOGLWindow> SWOGLWindow::Create(const WindowSystemInfo& wsi)
std::unique_ptr<SWOGLWindow> window = std::unique_ptr<SWOGLWindow>(new SWOGLWindow());
if (!window->Initialize(wsi))
{
PanicAlert("Failed to create OpenGL window");
PanicAlertFmt("Failed to create OpenGL window");
return nullptr;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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<int>(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<int>(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<int>(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<int>(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<int>(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<int>(format));
PanicAlertFmt("Unknown texture copy format: {:#x}\n", format);
break;
}
}

View File

@ -260,7 +260,7 @@ static float CalculateLightAttn(const LightPointer* light, Vec3* _ldir, const Ve
break;
}
default:
PanicAlert("LightColor");
PanicAlertFmt("LightColor");
}
return attn;