Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Norbyte/lslib
Browse files Browse the repository at this point in the history
  • Loading branch information
Norbyte committed Apr 26, 2020
2 parents cca08f5 + 27a6a28 commit 534ddb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions LSLib/Granny/Model/Vertex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,11 @@ public VertexDescriptor ConstructDescriptor(MemberDefinition memberDefn, StructD
{
desc.ColorMapType = ColorMapType.Byte4;
}
//Some Granny2 model formats report their color maps as UInt8 type instead of NormalUInt8, causing it to fail checks.
else if (member.Type == MemberType.UInt8 && member.ArraySize == 4)
{
desc.ColorMapType = ColorMapType.Byte4;
}
else
{
throw new Exception($"Unsupported color map type: {member.Type}, {member.ArraySize}");
Expand Down
2 changes: 1 addition & 1 deletion LSLib/LS/Mods/ModResources.cs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public void DiscoverModDirectory(string modName, string modPath, string publicPa
}

var typeCoercionWhitelistPath = modPath + @"\Story\RawFiles\TypeCoercionWhitelist.txt";
if (File.Exists(headerPath))
if (File.Exists(typeCoercionWhitelistPath))
{
var fileInfo = new FilesystemFileInfo
{
Expand Down

0 comments on commit 534ddb3

Please sign in to comment.