From 6fbbc2683eeedf3767ea3d741c62555a30d3ff45 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 22 Nov 2019 17:10:41 -0500 Subject: 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. --- Source/Core/VideoCommon/ShaderGenCommon.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/ShaderGenCommon.cpp') diff --git a/Source/Core/VideoCommon/ShaderGenCommon.cpp b/Source/Core/VideoCommon/ShaderGenCommon.cpp index ee4c3d32f8..28bacc9942 100644 --- a/Source/Core/VideoCommon/ShaderGenCommon.cpp +++ b/Source/Core/VideoCommon/ShaderGenCommon.cpp @@ -3,7 +3,9 @@ // Refer to the license.txt file included. #include "VideoCommon/ShaderGenCommon.h" -#include "Common/CommonPaths.h" + +#include + #include "Common/FileUtil.h" #include "Core/ConfigManager.h" @@ -76,7 +78,7 @@ std::string GetDiskShaderCacheFileName(APIType api_type, const char* type, bool { // We're using 21 bits, so 6 hex characters. ShaderHostConfig host_config = ShaderHostConfig::GetCurrent(); - filename += StringFromFormat("-%06X", host_config.bits); + filename += fmt::format("-{:06X}", host_config.bits); } filename += ".cache"; -- cgit v1.2.3