Merge branch 'develop' into stable

This commit is contained in:
Jesse Plamondon-Willard 2017-08-23 17:53:33 -04:00
commit 8df1ab7e11
4 changed files with 9 additions and 5 deletions

View File

@ -26,6 +26,10 @@ For mod developers:
For power users:
* Added command-line arguments to the SMAPI installer so it can be scripted.
## 1.15.3
For players:
* Fixed mods being marked as duplicate incorrectly in some cases.
## 1.15.2
For players:
* Improved errors when a mod DLL can't be loaded.

View File

@ -2,5 +2,5 @@ using System.Reflection;
using System.Runtime.InteropServices;
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("1.15.2.0")]
[assembly: AssemblyFileVersion("1.15.2.0")]
[assembly: AssemblyVersion("1.15.3.0")]
[assembly: AssemblyFileVersion("1.15.3.0")]

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@ -36,7 +36,7 @@ namespace StardewModdingAPI
/// <summary>SMAPI's current semantic version.</summary>
public static ISemanticVersion ApiVersion { get; } =
#if SMAPI_1_x
new SemanticVersion(1, 15, 2);
new SemanticVersion(1, 15, 3);
#else
new SemanticVersion(2, 0, 0, $"alpha-{DateTime.UtcNow:yyyyMMddHHmm}");
#endif

View File

@ -76,7 +76,7 @@ namespace StardewModdingAPI.Framework.ModLoading
: $"Could not load '{assemblyPath}'."
);
}
if (assemblies[0].Status == AssemblyLoadStatus.AlreadyLoaded)
if (assemblies.Last().Status == AssemblyLoadStatus.AlreadyLoaded) // mod assembly is last in dependency order
throw new SAssemblyLoadFailedException($"Could not load '{assemblyPath}' because it was already loaded. Do you have two copies of this mod?");
// rewrite & load assemblies in leaf-to-root order