Do nothing when MonoMod is not working
This commit is contained in:
parent
f0439f97a3
commit
02aabe7a45
|
@ -251,3 +251,4 @@ paket-files/
|
||||||
# JetBrains Rider
|
# JetBrains Rider
|
||||||
.idea/
|
.idea/
|
||||||
*.sln.iml
|
*.sln.iml
|
||||||
|
**/*.vshistory/
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue