[Base] Removed useless path_to_utf8 conversion while using fmt

Default filesystem::path formatter was added to fmt around 2022
This commit is contained in:
Gliniak
2024-12-13 19:04:31 +01:00
parent 3318ab5d4c
commit a295ec1bbd
18 changed files with 55 additions and 78 deletions

View File

@@ -244,7 +244,7 @@ void PipelineCache::InitializeShaderStorage(
XELOGE(
"Failed to create the shareable shader storage directory, persistent "
"shader storage will be disabled: {}",
xe::path_to_utf8(shader_storage_shareable_root));
shader_storage_shareable_root);
return;
}
}
@@ -267,7 +267,7 @@ void PipelineCache::InitializeShaderStorage(
XELOGE(
"Failed to open the Direct3D 12 pipeline description storage file for "
"writing, persistent shader storage will be disabled: {}",
xe::path_to_utf8(pipeline_storage_file_path));
pipeline_storage_file_path);
return;
}
pipeline_storage_file_flush_needed_ = false;
@@ -355,7 +355,7 @@ void PipelineCache::InitializeShaderStorage(
XELOGE(
"Failed to open the guest shader storage file for writing, persistent "
"shader storage will be disabled: {}",
xe::path_to_utf8(shader_storage_file_path));
shader_storage_file_path);
fclose(pipeline_storage_file_);
pipeline_storage_file_ = nullptr;
return;

View File

@@ -96,8 +96,7 @@ int shader_compiler_main(const std::vector<std::string>& args) {
auto input_file = filesystem::OpenFile(cvars::shader_input, "rb");
if (!input_file) {
XELOGE("Unable to open input file: {}",
xe::path_to_utf8(cvars::shader_input));
XELOGE("Unable to open input file: {}", cvars::shader_input);
return 1;
}
size_t input_file_size = std::filesystem::file_size(cvars::shader_input);
@@ -105,8 +104,7 @@ int shader_compiler_main(const std::vector<std::string>& args) {
fread(ucode_dwords.data(), 4, ucode_dwords.size(), input_file);
fclose(input_file);
XELOGI("Opened {} as a {} shader, {} words ({} bytes).",
xe::path_to_utf8(cvars::shader_input),
XELOGI("Opened {} as a {} shader, {} words ({} bytes).", cvars::shader_input,
shader_type == xenos::ShaderType::kVertex ? "vertex" : "pixel",
ucode_dwords.size(), ucode_dwords.size() * 4);

View File

@@ -65,7 +65,7 @@ int TraceDump::Main(const std::vector<std::string>& args) {
// Normalize the path and make absolute.
auto abs_path = std::filesystem::absolute(path);
XELOGI("Loading trace file {}...", xe::path_to_utf8(abs_path));
XELOGI("Loading trace file {}...", abs_path);
if (!Setup()) {
XELOGE("Unable to setup trace dump tool");

View File

@@ -55,7 +55,7 @@ bool TraceReader::Open(const std::string_view path) {
return false;
}
XELOGI("Mapped {}b trace from {}", trace_size_, xe::path_to_utf8(path));
XELOGI("Mapped {}b trace from {}", trace_size_, path);
XELOGI(" Version: {}", header->version);
auto commit_str = std::string(header->build_commit_sha,
xe::countof(header->build_commit_sha));