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

Commit

Permalink
Merge pull request #48 from noverd/revert_pr_46
Browse files Browse the repository at this point in the history
  • Loading branch information
misandrie authored Jul 18, 2024
2 parents 254d60c + ab425d8 commit 7a0a866
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 95 deletions.
11 changes: 5 additions & 6 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 @@ -120,7 +120,6 @@ public static void Disperse()
/// </summary>
public static void PostLoad()
{
Veil.Patch();
HWID.Force();
DiscordRPC.Patch();

Expand All @@ -142,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 @@ -183,7 +182,7 @@ public static void HidePatch(Assembly marsey)
}

/// <summary>
/// Undermines system functions, hides what doesn't belong from view
/// Undermines system functions, hides what doesnt belong from view
/// </summary>
/// <exception cref="HideseyException">Thrown if ThrowOnFail is true and any of the patches fails to apply</exception>
private static void Perjurize()
Expand Down Expand Up @@ -259,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
86 changes: 0 additions & 86 deletions Marsey/Stealthsey/Veil.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Marsey/Subversion/Subverse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ private static void Postfix(object __instance)
Assembly subverterAssembly = Assembly.LoadFrom(path);
MarseyLogger.Log(MarseyLogger.LogType.DEBG, "Subversion", $"Sideloading {path}");
AssemblyFieldHandler.InitLogger(subverterAssembly, subverterAssembly.FullName);

// Stealthsey methods
Veil.Hide(subverterAssembly);
Sedition.InitSedition(subverterAssembly, subverterAssembly.FullName);

loadGameAssemblyMethod.Invoke(__instance, new object[] { subverterAssembly });
Expand Down

0 comments on commit 7a0a866

Please sign in to comment.