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

Commit

Permalink
Change name to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
misandrie committed May 26, 2024
1 parent 7186e61 commit 3439d25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Marsey/Subversion/Sedition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@ private static void HideDelegate(Assembly asm)
Hidesey.HidePatch(asm);
}

public static void InitHidesey(Assembly assembly, string? assemblyName)
public static void InitSedition(Assembly assembly, string? assemblyName)
{
Type? hideseyType = assembly.GetType("Hidesey");
Type? hideseyType = assembly.GetType("Sedition");
if (hideseyType == null)
{
MarseyLogger.Log(MarseyLogger.LogType.DEBG, $"{assemblyName} has no Hidesey class");
return;
}

SetupHidesey(hideseyType);
SetupSedition(hideseyType);
}

private static void SetupHidesey(Type hidesey)
private static void SetupSedition(Type hidesey)
{
MethodInfo? stealthseyHide =
typeof(Sedition).GetMethod("HideDelegate", BindingFlags.Static | BindingFlags.NonPublic);
FieldInfo? asmHideseyDelegate = hidesey.GetField("hideDelegate", BindingFlags.Public | BindingFlags.Static);

if (asmHideseyDelegate == null || stealthseyHide == null)
{
MarseyLogger.Log(MarseyLogger.LogType.ERRO, $"Missing delegate fields on hidesey");
MarseyLogger.Log(MarseyLogger.LogType.ERRO, $"Missing delegate fields on sedition");
return;
}

Expand All @@ -46,7 +46,7 @@ private static void SetupHidesey(Type hidesey)
}
catch (Exception e)
{
MarseyLogger.Log(MarseyLogger.LogType.FATL, $"Failed to to assign logger delegate: {e.Message}");
MarseyLogger.Log(MarseyLogger.LogType.FATL, $"Failed to to assign sedition delegate: {e.Message}");
}
}
}
2 changes: 1 addition & 1 deletion Marsey/Subversion/Subverse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private static void Postfix(object __instance)
Assembly subverterAssembly = Assembly.LoadFrom(path);
MarseyLogger.Log(MarseyLogger.LogType.DEBG, "Subversion", $"Sideloading {path}");
AssemblyFieldHandler.InitLogger(subverterAssembly, subverterAssembly.FullName);
Sedition.InitHidesey(subverterAssembly, subverterAssembly.FullName);
Sedition.InitSedition(subverterAssembly, subverterAssembly.FullName);

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

Expand Down

0 comments on commit 3439d25

Please sign in to comment.