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

REVERT PR #46 #48

Merged
merged 2 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading