This commit is contained in:
Perfare
2018-07-07 02:59:44 +08:00
parent 453f6b6e36
commit 18275557df
6 changed files with 25 additions and 22 deletions

View File

@@ -27,7 +27,7 @@ namespace AssetStudio
var str = (string)ShaderResource.ResourceManager.GetObject($"Shader{sourceFile.version[0]}{sourceFile.version[1]}");
if (str == null)
{
str = preloadData.Deserialize();
str = preloadData.GetClassString();
if (str == null)
m_Script = Encoding.UTF8.GetBytes("Serialized Shader can't be read");
else