Move DXBC shader friendly naming logic into C++ side code

* This makes more sense and lets us share it between Qt and C# UIs.
This commit is contained in:
baldurk
2017-07-05 20:35:50 +01:00
parent ecf88787d7
commit 79101c7b13
8 changed files with 264 additions and 180 deletions
@@ -234,6 +234,8 @@ bool PersistantConfig::Load(const QString &filename)
SetConfigSetting(key, ConfigSettings[key]);
}
RENDERDOC_SetConfigSetting("Disassembly_FriendlyNaming", ShaderViewer_FriendlyNaming ? "1" : "0");
// localhost should always be available as a remote host
bool foundLocalhost = false;
@@ -262,6 +264,8 @@ bool PersistantConfig::Save()
for(RemoteHost *host : RemoteHosts)
RemoteHostList.push_back(*host);
RENDERDOC_SetConfigSetting("Disassembly_FriendlyNaming", ShaderViewer_FriendlyNaming ? "1" : "0");
return Serialize(m_Filename);
}