From e98cd922f4d8292215c7b69e19931a8dfb0b3d61 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Tue, 26 Dec 2017 16:16:01 -0500 Subject: [PATCH 01/21] fix typo on download page --- src/SMAPI.Web/Views/Index/Index.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SMAPI.Web/Views/Index/Index.cshtml b/src/SMAPI.Web/Views/Index/Index.cshtml index 2d76cc151..ad58898e1 100644 --- a/src/SMAPI.Web/Views/Index/Index.cshtml +++ b/src/SMAPI.Web/Views/Index/Index.cshtml @@ -62,7 +62,7 @@

For mod creators

From d1a829497292ea4c72da5f9bbfb3b50404e06022 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Thu, 28 Dec 2017 00:16:54 -0500 Subject: [PATCH 02/21] fix issue where assemblies could be incorrectly reloaded --- docs/release-notes.md | 4 ++++ src/SMAPI/Framework/ModLoading/AssemblyLoader.cs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index 165e7d4ef..aaa6d3ccc 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,4 +1,8 @@ # Release notes +## 2.4 +* For players: + * Fixed rare issues caused by assembly references being incorrectly loaded twice. + ## 2.3 * For players: * Added a user-friendly [download page](https://smapi.io). diff --git a/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs b/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs index 1e3c4a05a..3a7b214aa 100644 --- a/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs +++ b/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs @@ -162,7 +162,11 @@ private IEnumerable GetReferencedLocalAssemblies(FileInfo f // skip if already visited if (visitedAssemblyNames.Contains(assembly.Name.Name)) + { yield return new AssemblyParseResult(file, null, AssemblyLoadStatus.AlreadyLoaded); + yield break; + } + visitedAssemblyNames.Add(assembly.Name.Name); // yield referenced assemblies From d471ac296e2e6ca737781f80794a521b74ac75fb Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Tue, 2 Jan 2018 16:48:33 -0500 Subject: [PATCH 03/21] fix parse error for logs with zero installed mods --- docs/release-notes.md | 3 +++ src/SMAPI.Web/Views/LogParser/Index.cshtml | 4 ++-- src/SMAPI.Web/wwwroot/Content/js/log-parser.js | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index aaa6d3ccc..a7a3c97fb 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -3,6 +3,9 @@ * For players: * Fixed rare issues caused by assembly references being incorrectly loaded twice. +* For the [log parser][]: + * Fixed parse error for logs with zero installed mods. + ## 2.3 * For players: * Added a user-friendly [download page](https://smapi.io). diff --git a/src/SMAPI.Web/Views/LogParser/Index.cshtml b/src/SMAPI.Web/Views/LogParser/Index.cshtml index b7724c697..1659de8fb 100644 --- a/src/SMAPI.Web/Views/LogParser/Index.cshtml +++ b/src/SMAPI.Web/Views/LogParser/Index.cshtml @@ -3,9 +3,9 @@ } @model StardewModdingAPI.Web.ViewModels.LogParserModel @section Head { - + - +