summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-11-22 17:10:41 -0500
committerLioncash <mathew1800@gmail.com>2019-11-23 16:00:45 -0500
commit6fbbc2683eeedf3767ea3d741c62555a30d3ff45 (patch)
tree746529d2d5408b83ec75e53e51e20a34b0571897 /Source/Core/VideoCommon/RenderBase.cpp
parentbc449fb98f3b741f78d8881e2c02d588829aad74 (diff)
VideoCommon: Make use of fmt outside of shader generators
Migrates most of VideoCommon over to using fmt, with the exception being the shader generator code. The shader generators are quite large and have more corner cases to deal with in terms of conversion (shaders have braces in them, so we need to make sure to escape them). Because of the large amount of code that would need to be converted, the conversion of VideoCommon will be in two parts: - This change (which converts over the general case string formatting), - A follow up change that will specifically deal with converting over the shader generators.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderBase.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp
index 8559ca86b6..1c193f9fdc 100644
--- a/Source/Core/VideoCommon/RenderBase.cpp
+++ b/Source/Core/VideoCommon/RenderBase.cpp
@@ -22,6 +22,7 @@
#include <string>
#include <tuple>
+#include <fmt/format.h>
#include <imgui.h>
#include "Common/Assert.h"
@@ -1589,8 +1590,8 @@ void Renderer::StopFrameDumpToFFMPEG()
std::string Renderer::GetFrameDumpNextImageFileName() const
{
- return StringFromFormat("%sframedump_%u.png", File::GetUserPath(D_DUMPFRAMES_IDX).c_str(),
- m_frame_dump_image_counter);
+ return fmt::format("{}framedump_{}.png", File::GetUserPath(D_DUMPFRAMES_IDX),
+ m_frame_dump_image_counter);
}
bool Renderer::StartFrameDumpToImage(const FrameDumpConfig& config)