diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2019-11-28 15:03:23 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-28 15:03:23 -0800 |
| commit | 4a0611df5472ea58af2f7960c8fc91db56c68d5f (patch) | |
| tree | 3fc7a9c466cbecdaca0721e6e5d56869fd13ba4b /Source/Core/VideoCommon/ShaderGenCommon.cpp | |
| parent | b5656df7e8c397474a00e7f64822e56bcdf826b6 (diff) | |
| parent | 6fbbc2683eeedf3767ea3d741c62555a30d3ff45 (diff) | |
Merge pull request #8487 from lioncash/video-fmt
VideoCommon: Make use of fmt outside of shader generators
Diffstat (limited to 'Source/Core/VideoCommon/ShaderGenCommon.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/ShaderGenCommon.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 <fmt/format.h> + #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"; |
