From 6e2ace4fb7efa94f9f219834d6ffa2fd546e5c9b Mon Sep 17 00:00:00 2001 From: ZaneYork Date: Wed, 26 Aug 2020 14:18:34 +0800 Subject: [PATCH] Fix for MobileSpriteSheet patch support --- src/SMAPI/Constants.cs | 2 +- src/SMAPI/Metadata/CoreAssetPropagator.cs | 9 +++++++++ src/SMAPI/SMAPI.csproj | 10 ++++++---- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/SMAPI/Constants.cs b/src/SMAPI/Constants.cs index 72aabd4a..92f8bd76 100644 --- a/src/SMAPI/Constants.cs +++ b/src/SMAPI/Constants.cs @@ -24,7 +24,7 @@ namespace StardewModdingAPI ** Public ****/ /// SMAPI's current semantic version. - public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.6.2"); + public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.6.2.1", true); /// The minimum supported version of Stardew Valley. public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.4.5"); diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs index 892b0bae..84f13be3 100644 --- a/src/SMAPI/Metadata/CoreAssetPropagator.cs +++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs @@ -386,6 +386,15 @@ namespace StardewModdingAPI.Metadata Game1.shadowTexture = content.Load(key); return true; +#if SMAPI_FOR_MOBILE + case "loosesprites\\mobileatlas_manually_made": // Game1.LoadContent + Game1.mobileSpriteSheet = content.Load(key); + Game1.dayTimeMoneyBox.questButton.texture = Game1.mobileSpriteSheet; + Game1.dayTimeMoneyBox.buttonF8.texture = Game1.mobileSpriteSheet; + Game1.dayTimeMoneyBox.buttonGameMenu.texture = Game1.mobileSpriteSheet; + return true; +#endif + /**** ** Content\TileSheets ****/ diff --git a/src/SMAPI/SMAPI.csproj b/src/SMAPI/SMAPI.csproj index ec486040..869453bc 100644 --- a/src/SMAPI/SMAPI.csproj +++ b/src/SMAPI/SMAPI.csproj @@ -24,7 +24,9 @@ portable false bin\Debug\ - TRACE;DEBUG;ANDROID_TARGET_GOOGLE + TRACE;DEBUG;ANDROID_TARGET_AMAZON;HARMONY_1;SMAPI_FOR_MOBILE + + prompt 4 8.0 @@ -34,9 +36,9 @@ pdbonly true bin\Release\ - ANDROID_TARGET_AMAZON;HARMONY_1 - - + + ANDROID_TARGET_SAMSUNG;HARMONY_1;SMAPI_FOR_MOBILE + prompt 4 8.0