Skip to content

Commit

Permalink
About window now shows if game is using engine source
Browse files Browse the repository at this point in the history
fixes #1638
  • Loading branch information
vchelaru committed Nov 22, 2024
1 parent 170c16a commit bdb3ecc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,28 @@ public int? DllSyntaxVersion
set => Set(value);
}

public bool IsUsingSource
{
get => Get<bool>();
set => Set(value);
}

[DependsOn(nameof(DllSyntaxVersion))]
public string DllSyntaxVersionToShow => DllSyntaxVersion?.ToString() ?? "Unknown";
[DependsOn(nameof(IsUsingSource))]
public string DllSyntaxVersionToShow
{
get
{
if (IsUsingSource)
{
return "Using Engine Source";
}
else
{
return DllSyntaxVersion?.ToString() ?? "Unknown";
}
}
}

public string MainProjectTypeText
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ private void RefreshAboutViewModel(GlueProjectSave glueProject)
}

aboutViewModel.DllSyntaxVersion = GlueState.Self.EngineDllSyntaxVersion;
aboutViewModel.IsUsingSource = GlueState.Self.IsReferencingFrbSource;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public GlueProjectFileVersionErrorViewModel(GlueProjectSave glueProjectSave, IGl
_glueState = glueState;

var fileVersion = glueProjectSave.FileVersion;
this.Details = $"The FlatRedBall (.gluj) project has a FileVersion of {fileVersion} but the engine syntax only supports version {glueState.EngineDllSyntaxVersion}\n" +
this.Details = $"The FlatRedBall (.gluj) project has a FileVersion of {fileVersion} but the engine syntax only supports version {glueState.EngineDllSyntaxVersion},\n" +
$"To solve this problem, upgrade the engine, link it to source, or downgrade the FileVersion in the .gluj file.";
}

Expand Down

0 comments on commit bdb3ecc

Please sign in to comment.