using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using MoreHead;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("ShoeRepo")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ShoeRepo")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("1ddc88a2-d689-415a-a269-19efe9298cb3")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace ShoeRepo;
[BepInPlugin("kimkhoa.shoerepo", "Shoe Repo", "1.0.1")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class ShoeRepoMod : BaseUnityPlugin
{
private void Awake()
{
((BaseUnityPlugin)this).Logger.LogInfo((object)"\r\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\r\n⠀⠀⢠⣤⣤⣤⣤⣤⣤⣤⣤⣤⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\r\n⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⡟⠛⠛⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\r\n⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\r\n⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣦⣤⣤⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\r\n⠀⠀⠀⢸⣿⠟⢉⣉⡉⠻⣿⣿⣋⣉⣉⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\r\n⠀⠀⠀⢸⠁⣴⣿⣿⣿⣦⠈⣿⣿⣿⡿⠿⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\r\n⠀⠀⢀⣿⡄⠻⣿⣿⣿⠟⢠⣿⣿⣿⣷⣶⣶⣶⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\r\n⠀⠀⣼⣿⣿⣶⣤⣭⣤⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡶⠀⣀⣤⣀⣀⠀⠀⠀\r\n⠀⢠⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⢠⣾⣿⣿⣿⣿⠿⠆⠀\r\n⠀⢠⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣴⡆⠀\r\n⠀⠘⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠋⠉⠀⠀\r\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\r\n\ud83d\udc5f ShoeRepo mod loading...");
string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
string[] files = Directory.GetFiles(directoryName, "*.hhh", SearchOption.TopDirectoryOnly);
if (files.Length == 0)
{
((BaseUnityPlugin)this).Logger.LogWarning((object)"❌ No .hhh model files found in plugin folder.");
return;
}
int num = 0;
string[] array = files;
foreach (string text in array)
{
AssetBundle val = AssetBundle.LoadFromFile(text);
if ((Object)(object)val == (Object)null)
{
((BaseUnityPlugin)this).Logger.LogWarning((object)("⚠\ufe0f Failed to load: " + Path.GetFileName(text)));
continue;
}
GameObject[] array2 = val.LoadAllAssets<GameObject>();
GameObject[] array3 = array2;
foreach (GameObject val2 in array3)
{
((BaseUnityPlugin)this).Logger.LogInfo((object)("✅ Found: " + ((Object)val2).name));
}
num++;
}
((BaseUnityPlugin)this).Logger.LogInfo((object)string.Format("\ud83c\udf89 Loaded {0} model{1}! Enjoy!", num, (num == 1) ? "" : "s"));
HeadDecorationManager.RecreateUI();
}
}