Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
yukieiji committed Jan 8, 2025
1 parent 86c936c commit 30dbbe9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ExplorerCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
global using UnityEngine.UI;
global using UniverseLib;
global using UniverseLib.Utility;

using UnityExplorer.Config;
using UnityExplorer.ObjectExplorer;
using UnityExplorer.Runtime;
using UnityExplorer.UI;
using UnityExplorer.UI.Panels;
using UniverseLib.Input;

using HarmonyPatch = HarmonyLib.Harmony;

namespace UnityExplorer;

Expand All @@ -27,7 +29,7 @@ public static class ExplorerCore
public static string ExplorerFolder => Path.Combine(Loader.ExplorerFolderDestination, Loader.ExplorerFolderName);
public const string DEFAULT_EXPLORER_FOLDER_NAME = "sinai-dev-UnityExplorer";

public static HarmonyLib.Harmony Harmony { get; } = new HarmonyLib.Harmony(GUID);
public static HarmonyPatch Harmony { get; } = new HarmonyPatch(GUID);

/// <summary>
/// Initialize UnityExplorer with the provided Loader implementation.
Expand Down Expand Up @@ -170,7 +172,9 @@ public static void CopyAll(DirectoryInfo source, DirectoryInfo target)

// Copy each file into it's new directory.
foreach (FileInfo fi in source.GetFiles())
{
fi.MoveTo(Path.Combine(target.ToString(), fi.Name));
}

// Copy each subdirectory using recursion.
foreach (DirectoryInfo diSourceSubDir in source.GetDirectories())
Expand Down

0 comments on commit 30dbbe9

Please sign in to comment.