This commit is contained in:
2023-01-11 23:26:50 +01:00
commit b797c0c84a
51 changed files with 3231 additions and 0 deletions
@@ -0,0 +1,17 @@
// Veilheim
// a Valheim mod
//
// File: IgnoreAccessModifiers.cs
// Project: Veilheim
using System.Security.Permissions;
// SecurityPermision set to minimum
// for skipping access modifiers check from the mono JIT
// The same attribute are added to the assembly when ticking
// Unsafe Code in the Project settings
// This is done here to allow an explanation of the trick and
// not in an outside source you could potentially miss.
#pragma warning disable CS0618 // Type or member is obsolete
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]