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

Commit

Permalink
Empty list on new load
Browse files Browse the repository at this point in the history
  • Loading branch information
misandrie committed Oct 22, 2023
1 parent 9296594 commit 84f6d2b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions SS14.Launcher/Marsey/MarseyPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ public class MarseyPatcher



private static void LoadAssemblies()
public static void LoadAssemblies()
{
PatchAssemblies = new List<Patch>();

string path = Path.Combine(Directory.GetCurrentDirectory(), "Marsey");
foreach (string file in Directory.GetFiles(path, "*.dll"))
{
Expand Down Expand Up @@ -82,7 +84,6 @@ private static void InitAssembly(Assembly assembly)

private static void PatchProc()
{
Console.WriteLine("[MARSEY] Patching.");
foreach (Patch p in PatchAssemblies)
{
Console.WriteLine($"[MARSEY] Patching {p.asm.GetName()}");
Expand Down Expand Up @@ -129,16 +130,16 @@ public static void Boot(Assembly robClientAssembly)
Harmony.DEBUG = true;

GetGameAssemblies();
LoadAssemblies();
//LoadAssemblies();
PatchProc();
}
}

public class Patch
{
public Assembly asm;
public string name;
public string desc;
public Assembly asm { get; set; }
public string name { get; set; }
public string desc { get; set; }

public Patch(Assembly asm, string name, string desc)
{
Expand Down

0 comments on commit 84f6d2b

Please sign in to comment.