Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Commit

Permalink
Plugins tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mafiesto4 committed Sep 2, 2018
1 parent ef99887 commit 77a42df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion FlaxEditor/API/Static/GameCooker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ internal static void Internal_CanDeployPlugin(BuildPlatform buildPlatform, Assem

// Check if plugins supports the given platform
var platform = GetPlatformType(buildPlatform);
if (!desc.SupportedPlatforms.Contains(platform))
if (desc.SupportedPlatforms != null && !desc.SupportedPlatforms.Contains(platform))
{
Debug.Write(LogType.Log, "Skip game plugin from assembly " + assembly.FullName);
result = false;
Expand Down
6 changes: 3 additions & 3 deletions FlaxEditor/Windows/PluginsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public PluginEntry(Plugin plugin, CategoryEntry category, ref PluginDescription
else if (desc.IsBeta)
versionString = "BETA ";
versionString += "Version ";
versionString += desc.Version.ToString();
versionString += desc.Version != null ? desc.Version.ToString() : "1.0";
var versionLabel = new Label(Width - 140 - margin, margin, 140, 14)
{
HorizontalAlignment = TextAlignment.Far,
Expand All @@ -104,9 +104,9 @@ public PluginEntry(Plugin plugin, CategoryEntry category, ref PluginDescription
if (!string.IsNullOrEmpty(desc.AuthorUrl))
url = desc.AuthorUrl;
else if (!string.IsNullOrEmpty(desc.HomepageUrl))
url = desc.AuthorUrl;
url = desc.HomepageUrl;
else if (!string.IsNullOrEmpty(desc.RepositoryUrl))
url = desc.AuthorUrl;
url = desc.RepositoryUrl;
versionLabel.Font.Font.WaitForLoaded();
var font = versionLabel.Font.GetFont();
var authorWidth = font.MeasureText(desc.Author).X + 8;
Expand Down

0 comments on commit 77a42df

Please sign in to comment.