diff --git a/src/d3d9/d3d9_fixed_function.cpp b/src/d3d9/d3d9_fixed_function.cpp index 344dc7e89..c54bdc422 100644 --- a/src/d3d9/d3d9_fixed_function.cpp +++ b/src/d3d9/d3d9_fixed_function.cpp @@ -2441,7 +2441,7 @@ namespace dxvk { if (dumpPath.size() != 0) { std::ofstream dumpStream( - str::tows(str::format(dumpPath, "/", Name, ".spv").c_str()).c_str(), + str::topath(str::format(dumpPath, "/", Name, ".spv").c_str()).c_str(), std::ios_base::binary | std::ios_base::trunc); m_shader->dump(dumpStream); diff --git a/src/d3d9/d3d9_shader.cpp b/src/d3d9/d3d9_shader.cpp index 6b22a26e0..650a382e6 100644 --- a/src/d3d9/d3d9_shader.cpp +++ b/src/d3d9/d3d9_shader.cpp @@ -29,7 +29,7 @@ namespace dxvk { DxsoReader reader( reinterpret_cast(pShaderBytecode)); - reader.store(std::ofstream(str::tows(str::format(dumpPath, "/", name, ".dxso").c_str()).c_str(), + reader.store(std::ofstream(str::topath(str::format(dumpPath, "/", name, ".dxso").c_str()).c_str(), std::ios_base::binary | std::ios_base::trunc), bytecodeLength); char comment[2048]; @@ -41,7 +41,7 @@ namespace dxvk { &blob); if (SUCCEEDED(hr)) { - std::ofstream disassembledOut(str::tows(str::format(dumpPath, "/", name, ".dxso.dis").c_str()).c_str(), std::ios_base::binary | std::ios_base::trunc); + std::ofstream disassembledOut(str::topath(str::format(dumpPath, "/", name, ".dxso.dis").c_str()).c_str(), std::ios_base::binary | std::ios_base::trunc); disassembledOut.write( reinterpret_cast(blob->GetBufferPointer()), blob->GetBufferSize()); @@ -75,7 +75,7 @@ namespace dxvk { if (dumpPath.size() != 0) { std::ofstream dumpStream( - str::tows(str::format(dumpPath, "/", name, ".spv").c_str()).c_str(), + str::topath(str::format(dumpPath, "/", name, ".spv").c_str()).c_str(), std::ios_base::binary | std::ios_base::trunc); m_shader->dump(dumpStream);