Skip to content

Commit

Permalink
Compile plugin when missing game version
Browse files Browse the repository at this point in the history
  • Loading branch information
austinvaness committed Jan 15, 2024
1 parent 85c1909 commit c5336eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions PluginLoader/Data/GitHubPlugin.CacheManifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,11 @@ public bool IsCacheValid(string currentCommit, int currentGameVersion, bool requ
if(!File.Exists(DllFile) || Commit != currentCommit)
return false;

if (GameVersion != 0 && currentGameVersion != 0 && GameVersion != currentGameVersion)
return false;
if(currentGameVersion != 0)
{
if (GameVersion == 0 || GameVersion != currentGameVersion)
return false;
}

if (requiresAssets && !assetFiles.Values.Any(x => x.Type == AssetFile.AssetType.Asset))
return false;
Expand Down
4 changes: 2 additions & 2 deletions PluginLoader/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.12.3.0")]
[assembly: AssemblyFileVersion("1.12.3.0")]
[assembly: AssemblyVersion("1.12.4.0")]
[assembly: AssemblyFileVersion("1.12.4.0")]

0 comments on commit c5336eb

Please sign in to comment.