fix: Migrate plugin to BepInEx 6 IL2CPP
This commit is contained in:
parent
d95e3088f9
commit
08c0da7187
@ -1,11 +1,12 @@
|
|||||||
using BepInEx;
|
using BepInEx;
|
||||||
|
using BepInEx.IL2CPP;
|
||||||
using BepInEx.Configuration;
|
using BepInEx.Configuration;
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
|
|
||||||
namespace TaikoModStuff
|
namespace TaikoModStuff
|
||||||
{
|
{
|
||||||
[BepInPlugin("TaikoModStuff", PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
|
[BepInPlugin("TaikoModStuff", PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
|
||||||
public class Plugin : BaseUnityPlugin
|
public class Plugin : BasePlugin
|
||||||
{
|
{
|
||||||
public static ConfigEntry<bool> configForceFontChange;
|
public static ConfigEntry<bool> configForceFontChange;
|
||||||
|
|
||||||
@ -15,7 +16,7 @@ namespace TaikoModStuff
|
|||||||
public static ConfigEntry<int> configCustomFramerate;
|
public static ConfigEntry<int> configCustomFramerate;
|
||||||
public static ConfigEntry<bool> configToggleVSync;
|
public static ConfigEntry<bool> configToggleVSync;
|
||||||
|
|
||||||
private void Awake()
|
public override void Load()
|
||||||
{
|
{
|
||||||
// Add configurations
|
// Add configurations
|
||||||
configForceFontChange = Config.Bind("General.Toggles",
|
configForceFontChange = Config.Bind("General.Toggles",
|
||||||
@ -36,7 +37,7 @@ namespace TaikoModStuff
|
|||||||
configCustomFramerate = Config.Bind("General.Framerate",
|
configCustomFramerate = Config.Bind("General.Framerate",
|
||||||
"CustomFramerate",
|
"CustomFramerate",
|
||||||
60,
|
60,
|
||||||
"Custom framerate. Use with caution");
|
"Custom framerate.");
|
||||||
|
|
||||||
configToggleVSync = Config.Bind("General.Graphics",
|
configToggleVSync = Config.Bind("General.Graphics",
|
||||||
"EnableVSync",
|
"EnableVSync",
|
||||||
@ -51,7 +52,7 @@ namespace TaikoModStuff
|
|||||||
instance.PatchAll(typeof(ForceFramerate));
|
instance.PatchAll(typeof(ForceFramerate));
|
||||||
|
|
||||||
// Plugin startup logic
|
// Plugin startup logic
|
||||||
Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
|
Log.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net46</TargetFramework>
|
<TargetFramework>netstandard2.1</TargetFramework>
|
||||||
<AssemblyName>TaikoModStuff</AssemblyName>
|
<AssemblyName>TaikoModStuff</AssemblyName>
|
||||||
<Description>My first plugin</Description>
|
<Description>My first plugin</Description>
|
||||||
<Version>1.2.1</Version>
|
<Version>1.2.1</Version>
|
||||||
@ -10,8 +10,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" />
|
<PackageReference Include="BepInEx.IL2CPP" Version="6.0.0-*" IncludeAssets="compile" />
|
||||||
<PackageReference Include="BepInEx.Core" Version="5.*" />
|
|
||||||
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
|
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
|
||||||
<PackageReference Include="UnityEngine.Modules" Version="2020.3.19" IncludeAssets="compile" />
|
<PackageReference Include="UnityEngine.Modules" Version="2020.3.19" IncludeAssets="compile" />
|
||||||
<PackageReference Include="Taiko.GameLibs" Version="1.2.2-r.0" PrivateAssets="all" />
|
<PackageReference Include="Taiko.GameLibs" Version="1.2.2-r.0" PrivateAssets="all" />
|
||||||
|
Loading…
Reference in New Issue
Block a user