Limit macOS specific log output to macOS platforms specifically

This commit is contained in:
Dean Herbert 2022-03-28 23:46:04 +09:00
parent a98aac3bf2
commit b6ae0ebb6f
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using osu.Framework;
using osu.Framework.Allocation;
using osu.Framework.Development;
using osu.Framework.Graphics;
@ -162,7 +163,7 @@ private void beginMigration()
log("Migration failed!");
Logger.Log(t.Exception.ToString(), LoggingTarget.Database);
if (t.Exception.Flatten().InnerException is TypeInitializationException)
if (RuntimeInfo.OS == RuntimeInfo.Platform.macOS && t.Exception.Flatten().InnerException is TypeInitializationException)
{
// Not guaranteed to be the only cause of exception, but let's roll with it for now.
log("Please download and run the intel version of osu! once\nto allow data migration to complete!");