summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-11-13 22:33:26 -0500
committerLioncash <mathew1800@gmail.com>2020-11-17 21:23:58 -0500
commit3d9b2aa0055ded7ee74f6e4a73ff54acecf313a9 (patch)
tree0ff92a960d77b6bc8b92bed1c7d61f79206887dc /Source/Core/VideoCommon/RenderBase.cpp
parent8a621c2d5e7722de5148a0a40d4072445cffb361 (diff)
VideoCommon: Migrate over to fmt
Migrates off the printf-based formatting where applicable.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderBase.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp
index 2f46beeb56..5de871f6dd 100644
--- a/Source/Core/VideoCommon/RenderBase.cpp
+++ b/Source/Core/VideoCommon/RenderBase.cpp
@@ -900,7 +900,7 @@ bool Renderer::InitializeImGui()
{
if (!ImGui::CreateContext())
{
- PanicAlert("Creating ImGui context failed");
+ PanicAlertFmt("Creating ImGui context failed");
return false;
}
@@ -919,7 +919,7 @@ bool Renderer::InitializeImGui()
m_imgui_vertex_format = CreateNativeVertexFormat(vdecl);
if (!m_imgui_vertex_format)
{
- PanicAlert("Failed to create imgui vertex format");
+ PanicAlertFmt("Failed to create imgui vertex format");
return false;
}
@@ -935,7 +935,7 @@ bool Renderer::InitializeImGui()
std::unique_ptr<AbstractTexture> font_tex = CreateTexture(font_tex_config);
if (!font_tex)
{
- PanicAlert("Failed to create imgui texture");
+ PanicAlertFmt("Failed to create imgui texture");
return false;
}
font_tex->Load(0, font_tex_width, font_tex_height, font_tex_width, font_tex_pixels,
@@ -962,7 +962,7 @@ bool Renderer::RecompileImGuiPipeline()
CreateShaderFromSource(ShaderStage::Pixel, FramebufferShaderGen::GenerateImGuiPixelShader());
if (!vertex_shader || !pixel_shader)
{
- PanicAlert("Failed to compile imgui shaders");
+ PanicAlertFmt("Failed to compile imgui shaders");
return false;
}
@@ -974,7 +974,7 @@ bool Renderer::RecompileImGuiPipeline()
ShaderStage::Geometry, FramebufferShaderGen::GeneratePassthroughGeometryShader(1, 1));
if (!geometry_shader)
{
- PanicAlert("Failed to compile imgui geometry shader");
+ PanicAlertFmt("Failed to compile imgui geometry shader");
return false;
}
}
@@ -1000,7 +1000,7 @@ bool Renderer::RecompileImGuiPipeline()
m_imgui_pipeline = CreatePipeline(pconfig);
if (!m_imgui_pipeline)
{
- PanicAlert("Failed to create imgui pipeline");
+ PanicAlertFmt("Failed to create imgui pipeline");
return false;
}
@@ -1436,7 +1436,7 @@ bool Renderer::CheckFrameDumpRenderTexture(u32 target_width, u32 target_height)
AbstractTextureFormat::RGBA8, AbstractTextureFlag_RenderTarget));
if (!m_frame_dump_render_texture)
{
- PanicAlert("Failed to allocate frame dump render texture");
+ PanicAlertFmt("Failed to allocate frame dump render texture");
return false;
}
m_frame_dump_render_framebuffer = CreateFramebuffer(m_frame_dump_render_texture.get(), nullptr);
@@ -1480,7 +1480,7 @@ void Renderer::FlushFrameDump()
}
else
{
- ERROR_LOG(VIDEO, "Failed to map texture for dumping.");
+ ERROR_LOG_FMT(VIDEO, "Failed to map texture for dumping.");
}
m_frame_dump_needs_flush = false;
@@ -1552,8 +1552,8 @@ void Renderer::FrameDumpThreadFunc()
#if !defined(HAVE_FFMPEG)
if (dump_to_ffmpeg)
{
- WARN_LOG(VIDEO, "FrameDump: Dolphin was not compiled with FFmpeg, using fallback option. "
- "Frames will be saved as PNG images instead.");
+ WARN_LOG_FMT(VIDEO, "FrameDump: Dolphin was not compiled with FFmpeg, using fallback option. "
+ "Frames will be saved as PNG images instead.");
dump_to_ffmpeg = false;
}
#endif
@@ -1666,7 +1666,7 @@ bool Renderer::StartFrameDumpToImage(const FrameDump::FrameData&)
std::string filename = GetFrameDumpNextImageFileName();
if (File::Exists(filename))
{
- if (!AskYesNoT("Frame dump image(s) '%s' already exists. Overwrite?", filename.c_str()))
+ if (!AskYesNoFmtT("Frame dump image(s) '{}' already exists. Overwrite?", filename))
return false;
}
}