1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

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

View File

@ -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!");