Skip to content

Commit

Permalink
Remove obsolete includes and simplify ModInit
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Dec 18, 2022
1 parent a515e9c commit 154eabf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
4 changes: 0 additions & 4 deletions Harmony/StartupOptimizer.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
using AssetsTools.NET;
using AssetsTools.NET.Extra;
using AssetsTools.NET.Extra.Decompressors.LZ4;
using HarmonyLib;
using SevenZip.Compression.LZMA;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Threading;
using UnityEngine;

Expand Down Expand Up @@ -94,8 +92,6 @@ public static bool ContainsLZMA(AssetBundleFile bundle)
public void InitMod(Mod mod)
{
Log.Out(" Loading Patch: " + GetType().ToString());
Harmony harmony = new Harmony(GetType().ToString());
harmony.PatchAll(Assembly.GetExecutingAssembly());

List<Tuple<AssetBundleRecompressOperation, long>> tasks =
new List<Tuple<AssetBundleRecompressOperation, long>>();
Expand Down
10 changes: 1 addition & 9 deletions Harmony/StartupOptimizerCMD.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
using AssetsTools.NET;
using AssetsTools.NET.Extra;
using AssetsTools.NET.Extra.Decompressors.LZ4;
using HarmonyLib;
using SevenZip.Compression.LZMA;
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Threading;
using UnityEngine;

public class StartupOptimizerCMD : ConsoleCmdAbstract
{
Expand Down
Binary file modified StartupOptimizer.dll
Binary file not shown.

0 comments on commit 154eabf

Please sign in to comment.