mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-07-15 11:04:16 -04:00
Modify project file
Fixed some bugs
This commit is contained in:
@ -27,7 +27,13 @@ namespace Unity_Studio
|
||||
{
|
||||
if (readSwitch)
|
||||
{
|
||||
m_Script = Encoding.UTF8.GetBytes(preloadData.ViewStruct());
|
||||
string str;
|
||||
if ((str = preloadData.ViewStruct()) != null)
|
||||
{
|
||||
m_Script = Encoding.UTF8.GetBytes(preloadData.ViewStruct());
|
||||
}
|
||||
else
|
||||
m_Script = Encoding.UTF8.GetBytes("Serialized Shader can't be read");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user