From 6a684b7900db1329c4260190ddc8e1f15271631f Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Fri, 28 Feb 2020 18:03:07 -0600 Subject: [PATCH] Added readonly to some things in CecilLibLoader --- IPA.Loader/Loader/LibLoader.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IPA.Loader/Loader/LibLoader.cs b/IPA.Loader/Loader/LibLoader.cs index 74ab286f..02653768 100644 --- a/IPA.Loader/Loader/LibLoader.cs +++ b/IPA.Loader/Loader/LibLoader.cs @@ -20,8 +20,8 @@ namespace IPA.Loader { internal class CecilLibLoader : BaseAssemblyResolver { - private static string CurrentAssemblyName = Assembly.GetExecutingAssembly().GetName().Name; - private static string CurrentAssemblyPath = Assembly.GetExecutingAssembly().Location; + private static readonly string CurrentAssemblyName = Assembly.GetExecutingAssembly().GetName().Name; + private static readonly string CurrentAssemblyPath = Assembly.GetExecutingAssembly().Location; public override AssemblyDefinition Resolve(AssemblyNameReference name, ReaderParameters parameters) { @@ -80,7 +80,7 @@ namespace IPA.Loader return; } - void AddDir(string path) + static void AddDir(string path) { var retPtr = AddDllDirectory(path); if (retPtr == IntPtr.Zero)