MonoMod / MonoMod.Common

Common code used by MonoMod and other .NET modding libraries. Not to be confused with MonoMod.Utils (for mods).
MIT License
74 stars 32 forks source link

on mono on Rosetta environment, falsely detected as ARM and causes crash #36

Open anatawa12 opened 1 year ago

anatawa12 commented 1 year ago

I found this problem on UnityEditor on macOS with Harmony. I tried to mod assemblies but unity crashes because of this problem.

Test Code

using System;
using MonoMod.Utils;

namespace MonoMod.DebugIL {
    class Program {
        public static void Main(string[] args) {
            Console.WriteLine("PlatformHelper.Current " + PlatformHelper.Current);
        }
    }
}

Expected

PlatformHelper.Current Bits64, MacOS

Actual

PlatformHelper.Current Bits64, MacOS, ARM