Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Naming fix from fdcd521
Browse files Browse the repository at this point in the history
  • Loading branch information
noverd committed Jul 18, 2024
1 parent 0e37ca2 commit ab425d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Marsey/Stealthsey/Hidesey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static class Hidesey
{
private static List<Assembly> _hideseys = new List<Assembly>();
private static bool _initialized;
internal static bool caching;
private static bool _caching;

/// <summary>
/// Starts Hidesey. Patches GetAssemblies, GetReferencedAssemblies and hides Harmony from assembly list.
Expand Down Expand Up @@ -141,8 +141,8 @@ public static void Cleanup()

private static void ToggleCaching()
{
MarseyLogger.Log(MarseyLogger.LogType.DEBG, $"Caching is set to {!caching}");
caching = !caching;
MarseyLogger.Log(MarseyLogger.LogType.DEBG, $"Caching is set to {!_caching}");
_caching = !_caching;
}

/// <summary>
Expand Down Expand Up @@ -258,7 +258,7 @@ public static AssemblyName[] LyingReference(AssemblyName[] original)
public static Type[] LyingTyper(Type[] original)
{
IEnumerable<Type> hiddentypes = Facade.GetTypes();
if (!caching)
if (!_caching)
return original.Except(hiddentypes).ToArray();

Type[] cached = Facade.Cached;
Expand Down

0 comments on commit ab425d8

Please sign in to comment.