mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
an approach to addressables
This commit is contained in:
1 parent
86f970c989
commit
23c0397afe
7 files changed
+432
No files matched your search
@@ -3,9 +3,12 @@ using BepInEx.Configuration;
|
||||
using BepInEx.Unity.IL2CPP;
|
||||
using HarmonyLib;
|
||||
using MiraAPI.PluginLoading;
|
||||
using MiraAPI.Utilities.Assets;
|
||||
using Reactor;
|
||||
using Reactor.Networking;
|
||||
using Reactor.Networking.Attributes;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace MiraAPI.Example;
|
||||
|
||||
@@ -23,5 +26,9 @@ public partial class ExamplePlugin : BasePlugin, IMiraPlugin
|
||||
{
|
||||
ExampleEventHandlers.Initialize();
|
||||
Harmony.PatchAll();
|
||||
|
||||
var path = Path.GetDirectoryName(Assembly.GetAssembly(typeof(ExamplePlugin))!.Location) + "\\touhats.catalog";
|
||||
AddressablesLoader.RegisterToLoad(path);
|
||||
AddressablesLoader.RegisterHats("touhats");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user