Remove wstring variants of string utils functions

* When needed on windows we convert to/from UTF-8. For most places this is easy
  enough, the callstack processing is now moved to store most data as UTF-8 in
  the first place.
This commit is contained in:
baldurk
2019-03-13 14:21:28 +00:00
parent 17e1ea96d2
commit c1408df4cd
22 changed files with 288 additions and 296 deletions
+4 -4
View File
@@ -51,7 +51,7 @@ static bool IsSupported(ShaderEncoding encoding)
std::string vc = LocatePluginFile(pluginPath, virtualcontext_name);
Process::ProcessResult result = {};
Process::LaunchProcess(vc.c_str(), dirname(vc).c_str(), "", true, &result);
Process::LaunchProcess(vc.c_str(), get_dirname(vc).c_str(), "", true, &result);
// running with no parameters produces an error, so if there's no output something went wrong.
if(result.strStdout.empty())
@@ -66,7 +66,7 @@ static bool IsSupported(ShaderEncoding encoding)
std::string amdspv = LocatePluginFile(pluginPath, amdspv_name);
Process::ProcessResult result = {};
Process::LaunchProcess(amdspv.c_str(), dirname(amdspv).c_str(), "", true, &result);
Process::LaunchProcess(amdspv.c_str(), get_dirname(amdspv).c_str(), "", true, &result);
// running with no parameters produces help text, so if there's no output something went wrong.
if(result.strStdout.empty())
@@ -200,7 +200,7 @@ std::string DisassembleSPIRV(ShaderStage stage, const bytebuf &shaderBytes, cons
std::string amdspv = LocatePluginFile(pluginPath, amdspv_name);
Process::ProcessResult result = {};
Process::LaunchProcess(amdspv.c_str(), dirname(amdspv).c_str(), cmdLine.c_str(), true, &result);
Process::LaunchProcess(amdspv.c_str(), get_dirname(amdspv).c_str(), cmdLine.c_str(), true, &result);
if(result.strStdout.find("SUCCESS") == std::string::npos)
{
@@ -353,7 +353,7 @@ std::string DisassembleGLSL(ShaderStage stage, const bytebuf &shaderBytes, const
std::string vc = LocatePluginFile(pluginPath, virtualcontext_name);
Process::ProcessResult result = {};
Process::LaunchProcess(vc.c_str(), dirname(vc).c_str(), cmdLine.c_str(), true, &result);
Process::LaunchProcess(vc.c_str(), get_dirname(vc).c_str(), cmdLine.c_str(), true, &result);
if(result.retCode != 0 || result.strStdout.find("Error") != string::npos ||
result.strStdout.empty() || !FileIO::exists(outPath.c_str()))