Bug fix,for Immersive Farm 2 Remastered

This commit is contained in:
ZaneYork 2020-03-14 13:37:18 +08:00
parent 4c6fd76f0b
commit eeb960a0b8
3 changed files with 10 additions and 4 deletions

View File

@ -20,7 +20,7 @@ namespace StardewModdingAPI
** Public
****/
/// <summary>SMAPI's current semantic version.</summary>
public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.3.2.1", allowNonStandard: true);
public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.3.2.2", allowNonStandard: true);
/// <summary>The minimum supported version of Stardew Valley.</summary>
public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.4.5");

View File

@ -209,7 +209,7 @@ namespace StardewModdingAPI.Framework
protected override void LoadContent()
{
base.LoadContent();
Game1.mapDisplayDevice = new SDisplayDevice(Game1.content, this.GraphicsDevice);
//Game1.mapDisplayDevice = new SDisplayDevice(Game1.content, this.GraphicsDevice);
}
/// <summary>Initialize just before the game's first update tick.</summary>
@ -307,8 +307,8 @@ namespace StardewModdingAPI.Framework
{
this.Multiplayer.CleanupOnMultiplayerExit();
if (!(Game1.mapDisplayDevice is SDisplayDevice))
Game1.mapDisplayDevice = new SDisplayDevice(Game1.content, this.GraphicsDevice);
//if (!(Game1.mapDisplayDevice is SDisplayDevice))
// Game1.mapDisplayDevice = new SDisplayDevice(Game1.content, this.GraphicsDevice);
}
/// <summary>Constructor a content manager to read XNB files.</summary>

View File

@ -130,6 +130,12 @@ namespace StardewModdingAPI
Instance.OnCreatePartTwo(retry + 1);
}).Start();
}
catch (Exception ex)
{
SAlertDialogUtil.AlertMessage($"SMAPI failed to initialize: {ex}");
Microsoft.AppCenter.Crashes.Crashes.TrackError(ex);
this.Finish();
}
}
public new void CheckAppPermissions()