From b6ae0ebb6f9ec7b561659d67327971e1a484ff87 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 28 Mar 2022 23:46:04 +0900 Subject: [PATCH] Limit macOS specific log output to macOS platforms specifically --- osu.Game/Database/EFToRealmMigrator.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Game/Database/EFToRealmMigrator.cs b/osu.Game/Database/EFToRealmMigrator.cs index d3f7c561d5..d6460bc9d3 100644 --- a/osu.Game/Database/EFToRealmMigrator.cs +++ b/osu.Game/Database/EFToRealmMigrator.cs @@ -8,6 +8,7 @@ using System.IO; 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 @@ namespace osu.Game.Database 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!");