From f3fc50c8db85b6277d646bd670767713911b9ec3 Mon Sep 17 00:00:00 2001 From: sephiroth99 Date: Wed, 30 Dec 2015 15:59:45 -0500 Subject: [PATCH] shader: Fix print format for hash --- src/xenia/gpu/shader.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/xenia/gpu/shader.cc b/src/xenia/gpu/shader.cc index c2fc1f25d..3e0be41f9 100644 --- a/src/xenia/gpu/shader.cc +++ b/src/xenia/gpu/shader.cc @@ -9,6 +9,7 @@ #include "xenia/gpu/shader.h" +#include #include #include "xenia/base/filesystem.h" @@ -47,8 +48,8 @@ void Shader::Dump(const std::string& base_path, const char* path_prefix) { char txt_file_name[kMaxPath]; std::snprintf(txt_file_name, xe::countof(txt_file_name), - "%s/shader_%s_%.16llX.%s", base_path.c_str(), path_prefix, - ucode_data_hash_, + "%s/shader_%s_%.16" PRIX64 ".%s", base_path.c_str(), + path_prefix, ucode_data_hash_, shader_type_ == ShaderType::kVertex ? "vert" : "frag"); FILE* f = fopen(txt_file_name, "w"); if (f) { @@ -70,8 +71,8 @@ void Shader::Dump(const std::string& base_path, const char* path_prefix) { char bin_file_name[kMaxPath]; std::snprintf(bin_file_name, xe::countof(bin_file_name), - "%s/shader_%s_%.16llX.bin.%s", base_path.c_str(), path_prefix, - ucode_data_hash_, + "%s/shader_%s_%.16" PRIX64 ".bin.%s", base_path.c_str(), + path_prefix, ucode_data_hash_, shader_type_ == ShaderType::kVertex ? "vert" : "frag"); f = fopen(bin_file_name, "w"); if (f) {