From c68118449c191000a588ad8e321b98cd1492aebe Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 29 Jan 2023 20:40:31 -0500 Subject: [PATCH 1/5] update release notes --- docs/release-notes.md | 3 +++ .../Framework/Clients/UpdateManifest/UpdateManifestClient.cs | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index d09e9d633..beffc8737 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -11,6 +11,9 @@ * For players: * Fixed `findstr` error in installer for some players. +* For mod authors: + * Added support for [custom update manifests](https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Update_checks#Custom_update_manifest) (thanks to Jamie Taylor!). + ## 3.18.2 Released 09 January 2023 for Stardew Valley 1.5.6 or later. diff --git a/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestClient.cs b/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestClient.cs index 1614beab0..270728977 100644 --- a/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestClient.cs +++ b/src/SMAPI.Web/Framework/Clients/UpdateManifest/UpdateManifestClient.cs @@ -1,4 +1,3 @@ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; From 6c796cb3270dc8cab710961faa955120f378514d Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 4 Feb 2023 11:51:03 -0500 Subject: [PATCH 2/5] remove LargeAddressAware flag This isn't needed anymore since SMAPI is 64-bit now. --- docs/release-notes.md | 1 + src/SMAPI/SMAPI.csproj | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index beffc8737..7951b51ac 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -10,6 +10,7 @@ ## Upcoming release * For players: * Fixed `findstr` error in installer for some players. + * Removed `LargeAddressAware` flag on SMAPI (no longer needed since it's 64-bit now). * For mod authors: * Added support for [custom update manifests](https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Update_checks#Custom_update_manifest) (thanks to Jamie Taylor!). diff --git a/src/SMAPI/SMAPI.csproj b/src/SMAPI/SMAPI.csproj index 59ad47f00..e00dd46e3 100644 --- a/src/SMAPI/SMAPI.csproj +++ b/src/SMAPI/SMAPI.csproj @@ -8,7 +8,6 @@ Exe true false - true icon.ico @@ -22,7 +21,6 @@ - From 92b553c193e6bcb979e6447da905ed2043ccc6c7 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Mon, 6 Feb 2023 00:10:33 -0500 Subject: [PATCH 3/5] add NuGet package readme note about using constants before they're defined --- docs/technical/mod-package.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/technical/mod-package.md b/docs/technical/mod-package.md index 23f0b221d..ab8a2c95e 100644 --- a/docs/technical/mod-package.md +++ b/docs/technical/mod-package.md @@ -99,6 +99,10 @@ There are two places you can put them: 2. Open the `.csproj` file in a text editor (Notepad is fine). 3. Add the properties between the first `` and `` tags you find. +**Note:** you can't use a property before it's defined. That mainly means that when setting +`GameModsPath`, you'll need to either specify `GamePath` manually or put the full path in +`GameModsPath`. + ### Available properties These are the options you can set: From ce2cca689c75e3057477c4ca4181496bebf41756 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 18 Feb 2023 15:08:00 -0500 Subject: [PATCH 4/5] update to FluentHttpClient 4.3.0 --- docs/release-notes.md | 1 + src/SMAPI.Toolkit/SMAPI.Toolkit.csproj | 2 +- src/SMAPI.Web/SMAPI.Web.csproj | 2 +- src/SMAPI/SMAPI.csproj | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 7951b51ac..495988f88 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -10,6 +10,7 @@ ## Upcoming release * For players: * Fixed `findstr` error in installer for some players. + * Updated to [FluentHttpClient](https://github.com/Pathoschild/FluentHttpClient#readme) 4.3.0 (see [changes](https://github.com/Pathoschild/FluentHttpClient/blob/develop/RELEASE-NOTES.md#430)). * Removed `LargeAddressAware` flag on SMAPI (no longer needed since it's 64-bit now). * For mod authors: diff --git a/src/SMAPI.Toolkit/SMAPI.Toolkit.csproj b/src/SMAPI.Toolkit/SMAPI.Toolkit.csproj index 9529241f3..2a9a8294b 100644 --- a/src/SMAPI.Toolkit/SMAPI.Toolkit.csproj +++ b/src/SMAPI.Toolkit/SMAPI.Toolkit.csproj @@ -11,7 +11,7 @@ - + diff --git a/src/SMAPI.Web/SMAPI.Web.csproj b/src/SMAPI.Web/SMAPI.Web.csproj index 1c0e4e420..1e5685720 100644 --- a/src/SMAPI.Web/SMAPI.Web.csproj +++ b/src/SMAPI.Web/SMAPI.Web.csproj @@ -25,7 +25,7 @@ - + diff --git a/src/SMAPI/SMAPI.csproj b/src/SMAPI/SMAPI.csproj index e00dd46e3..530b75aa7 100644 --- a/src/SMAPI/SMAPI.csproj +++ b/src/SMAPI/SMAPI.csproj @@ -24,7 +24,7 @@ - + From c9680e92db6433e2695e8b34460ca35df16911dc Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 18 Feb 2023 15:09:18 -0500 Subject: [PATCH 5/5] add PerScreen.IsActiveForScreen() --- docs/release-notes.md | 1 + src/SMAPI/Utilities/PerScreen.cs | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index 495988f88..fe1306089 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -15,6 +15,7 @@ * For mod authors: * Added support for [custom update manifests](https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Update_checks#Custom_update_manifest) (thanks to Jamie Taylor!). + * Added `IsActiveForScreen()` method to `PerScreen`. ## 3.18.2 Released 09 January 2023 for Stardew Valley 1.5.6 or later. diff --git a/src/SMAPI/Utilities/PerScreen.cs b/src/SMAPI/Utilities/PerScreen.cs index 87bf20272..674ec760e 100644 --- a/src/SMAPI/Utilities/PerScreen.cs +++ b/src/SMAPI/Utilities/PerScreen.cs @@ -101,6 +101,12 @@ public void ResetAllScreens() this.RemoveScreens(_ => true); } + /// Get whether the current screen has a value created yet. + public bool IsActiveForScreen() + { + return this.States.ContainsKey(Context.ScreenId); + } + /********* ** Private methods