Skip to content

Commit

Permalink
NFE: Fixed resource pack preview
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXin committed Dec 24, 2016
1 parent 37e796f commit 5ea4cc3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NFirmwareEditor/Storages/ResourcePacksStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public ResourcePack TryLoad(string filePath)
.Select(x => x.Trim())
.ToArray();

result.FilePath = filePath;
result.FileName = Path.GetFileName(filePath);
if (result.Images == null)
{
Trace.Warn("Resource pack '{0}' does not contains any images.", filePath);
Expand Down

0 comments on commit 5ea4cc3

Please sign in to comment.