1
0
Fork 0

Update BepInEx.PluginInfoProps to version 2.x

2.x implements better namespacing.
This commit is contained in:
ivan tkachenko 2025-12-21 02:11:44 +02:00
parent b6f576d50d
commit 76189c6ad2
3 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ namespace MuzikaGromche
var jsonObject = new Dictionary<string, object>();
var tracksList = new List<object>();
jsonObject["version"] = PluginInfo.PLUGIN_VERSION;
jsonObject["version"] = MyPluginInfo.PLUGIN_VERSION;
jsonObject["tracks"] = tracksList;
foreach (var (selectableTrack, audioTrack) in SelectTracks(tracks))
{

View File

@ -42,7 +42,7 @@
<ItemGroup>
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" Private="false" />
<PackageReference Include="BepInEx.Core" Version="5.*" PrivateAssets="all" Private="false" />
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" PrivateAssets="all" Private="false" />
<PackageReference Include="BepInEx.PluginInfoProps" Version="2.*" PrivateAssets="all"/>
<PackageReference Include="UnityEngine.Modules" Version="2022.3.9" PrivateAssets="all" Private="false" />
<PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.4.1" PrivateAssets="all" Private="false" />
<PackageReference Include="AinaVT-LethalConfig" Version="1.4.6" PrivateAssets="all" Private="false" />

View File

@ -21,7 +21,7 @@ using UnityEngine.Networking;
namespace MuzikaGromche
{
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
[BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)]
[BepInDependency("ainavt.lc.lethalconfig", "1.4.6")]
[BepInDependency("watergun.v72lightfix", BepInDependency.DependencyFlags.SoftDependency)]
[BepInDependency("BMX.LobbyCompatibility", BepInDependency.DependencyFlags.SoftDependency)]
@ -946,7 +946,7 @@ namespace MuzikaGromche
Config = new Config(base.Config);
DiscoBallManager.Load();
PoweredLightsAnimators.Load();
Harmony = new Harmony(PluginInfo.PLUGIN_NAME);
Harmony = new Harmony(MyPluginInfo.PLUGIN_NAME);
Harmony.PatchAll(typeof(GameNetworkManagerPatch));
Harmony.PatchAll(typeof(JesterPatch));
Harmony.PatchAll(typeof(EnemyAIPatch));