mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-19 15:51:45 +00:00
Rename Location to prevent compilation with it
This commit is contained in:
1 parent
d44b93ba93
commit
e0a81dfdbd
2 files changed
+5
-5
No files matched your search
@@ -91,7 +91,7 @@ public abstract class BaseChainloader<TPlugin>
|
||||
Incompatibilities = incompatibilities,
|
||||
TypeName = type.FullName,
|
||||
TargettedBepInExVersion = bepinVersion,
|
||||
Location = assemblyLocation,
|
||||
_location = assemblyLocation,
|
||||
LoadContext = loadContext
|
||||
};
|
||||
}
|
||||
@@ -390,10 +390,10 @@ public abstract class BaseChainloader<TPlugin>
|
||||
Logger.Log(LogLevel.Info, $"Loading [{pluginInfo}]");
|
||||
|
||||
Assembly ass = null;
|
||||
if (provider && !loadedAssemblies.TryGetValue(pluginInfo.Location, out ass))
|
||||
if (provider && !loadedAssemblies.TryGetValue(pluginInfo._location, out ass))
|
||||
{
|
||||
ass = Assembly.LoadFrom(pluginInfo.Location);
|
||||
loadedAssemblies[pluginInfo.Location] = ass;
|
||||
ass = Assembly.LoadFrom(pluginInfo._location);
|
||||
loadedAssemblies[pluginInfo._location] = ass;
|
||||
}
|
||||
else if (!provider && !loadedAssemblies.TryGetValue(pluginInfo.LoadContext.AssemblyIdentifier, out ass))
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@ public class PluginInfo : ICacheable
|
||||
|
||||
internal Version TargettedBepInExVersion { get; set; }
|
||||
|
||||
internal string Location { get; set; }
|
||||
internal string _location { get; set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string ToString() => $"{Metadata?.Name} {Metadata?.Version}";
|
||||
|
||||
Reference in new issue
Block a user