Do nothing when MonoMod is not working

This commit is contained in:
ZaneYork 2020-03-27 10:35:38 +08:00
parent f0439f97a3
commit 02aabe7a45
3 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View File

@ -251,3 +251,4 @@ paket-files/
# JetBrains Rider # JetBrains Rider
.idea/ .idea/
*.sln.iml *.sln.iml
**/*.vshistory/

View File

@ -1,5 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection; using System.Reflection;
using Android.OS;
using Harmony; using Harmony;
using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Graphics;
@ -29,6 +30,8 @@ namespace StardewModdingAPI.Mods.CustomLocalization
public override void Entry(IModHelper helper) public override void Entry(IModHelper helper)
{ {
if (Build.VERSION.SdkInt < BuildVersionCodes.M)
return;
Instance = this; Instance = this;
ModConfig = helper.ReadConfig<ModConfig>(); ModConfig = helper.ReadConfig<ModConfig>();
ModPath = helper.DirectoryPath; ModPath = helper.DirectoryPath;

View File

@ -14,6 +14,9 @@
<Reference Include="0Harmony"> <Reference Include="0Harmony">
<HintPath>..\libs\0Harmony.dll</HintPath> <HintPath>..\libs\0Harmony.dll</HintPath>
</Reference> </Reference>
<Reference Include="Mono.Android">
<HintPath>..\libs\Mono.Android.dll</HintPath>
</Reference>
<Reference Include="MonoGame.Framework"> <Reference Include="MonoGame.Framework">
<HintPath>..\libs\\MonoGame.Framework.dll</HintPath> <HintPath>..\libs\\MonoGame.Framework.dll</HintPath>
</Reference> </Reference>