mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 21:35:49 +00:00
final addressables
This commit is contained in:
1 parent
23c0397afe
commit
71b537dba9
9 files changed
+380
-28
No files matched your search
@@ -9,6 +9,7 @@ using Reactor.Networking;
|
||||
using Reactor.Networking.Attributes;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MiraAPI.Example;
|
||||
|
||||
@@ -28,7 +29,9 @@ public partial class ExamplePlugin : BasePlugin, IMiraPlugin
|
||||
Harmony.PatchAll();
|
||||
|
||||
var path = Path.GetDirectoryName(Assembly.GetAssembly(typeof(ExamplePlugin))!.Location) + "\\touhats.catalog";
|
||||
AddressablesLoader.RegisterToLoad(path);
|
||||
AddressablesLoader.RegisterCatalog(path);
|
||||
AddressablesLoader.RegisterHats("touhats");
|
||||
|
||||
AddressablesLoader.RegisterCatalog("https://raw.githubusercontent.com/MyDragonBreath/MyDragonBreath/refs/heads/main/DONTUSEGITHUBASACDN/catalog.json");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user