shader: Fix print format for hash

This commit is contained in:
sephiroth99 2015-12-30 15:59:45 -05:00
parent 962d8215da
commit f3fc50c8db
1 changed files with 5 additions and 4 deletions

View File

@ -9,6 +9,7 @@
#include "xenia/gpu/shader.h" #include "xenia/gpu/shader.h"
#include <cinttypes>
#include <cstring> #include <cstring>
#include "xenia/base/filesystem.h" #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]; char txt_file_name[kMaxPath];
std::snprintf(txt_file_name, xe::countof(txt_file_name), std::snprintf(txt_file_name, xe::countof(txt_file_name),
"%s/shader_%s_%.16llX.%s", base_path.c_str(), path_prefix, "%s/shader_%s_%.16" PRIX64 ".%s", base_path.c_str(),
ucode_data_hash_, path_prefix, ucode_data_hash_,
shader_type_ == ShaderType::kVertex ? "vert" : "frag"); shader_type_ == ShaderType::kVertex ? "vert" : "frag");
FILE* f = fopen(txt_file_name, "w"); FILE* f = fopen(txt_file_name, "w");
if (f) { if (f) {
@ -70,8 +71,8 @@ void Shader::Dump(const std::string& base_path, const char* path_prefix) {
char bin_file_name[kMaxPath]; char bin_file_name[kMaxPath];
std::snprintf(bin_file_name, xe::countof(bin_file_name), std::snprintf(bin_file_name, xe::countof(bin_file_name),
"%s/shader_%s_%.16llX.bin.%s", base_path.c_str(), path_prefix, "%s/shader_%s_%.16" PRIX64 ".bin.%s", base_path.c_str(),
ucode_data_hash_, path_prefix, ucode_data_hash_,
shader_type_ == ShaderType::kVertex ? "vert" : "frag"); shader_type_ == ShaderType::kVertex ? "vert" : "frag");
f = fopen(bin_file_name, "w"); f = fopen(bin_file_name, "w");
if (f) { if (f) {