Browse Source

Added readonly to some things in CecilLibLoader

pull/46/head
Anairkoen Schno 4 years ago
parent
commit
6a684b7900
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      IPA.Loader/Loader/LibLoader.cs

+ 3
- 3
IPA.Loader/Loader/LibLoader.cs View File

@ -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)


Loading…
Cancel
Save