diff --git a/.gitignore b/.gitignore index bb64d4b..a9fea54 100644 --- a/.gitignore +++ b/.gitignore @@ -251,3 +251,4 @@ paket-files/ # JetBrains Rider .idea/ *.sln.iml +**/*.vshistory/ diff --git a/ModEntry.cs b/ModEntry.cs index 7d26643..8e93c71 100644 --- a/ModEntry.cs +++ b/ModEntry.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Reflection; +using Android.OS; using Harmony; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; @@ -29,6 +30,8 @@ namespace StardewModdingAPI.Mods.CustomLocalization public override void Entry(IModHelper helper) { + if (Build.VERSION.SdkInt < BuildVersionCodes.M) + return; Instance = this; ModConfig = helper.ReadConfig(); ModPath = helper.DirectoryPath; diff --git a/SMAPI.Mods.CustomLocalization.csproj b/SMAPI.Mods.CustomLocalization.csproj index 2b54276..b421036 100644 --- a/SMAPI.Mods.CustomLocalization.csproj +++ b/SMAPI.Mods.CustomLocalization.csproj @@ -14,6 +14,9 @@ ..\libs\0Harmony.dll + + ..\libs\Mono.Android.dll + ..\libs\\MonoGame.Framework.dll