Use netstandard2.1

This commit is contained in:
js6pak committed 2021-01-01 20:05:00 +01:00
1 parent bd74ff4770
commit 21d5c6da57
7 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Reactor.OxygenFilter.MSBuild" Version="0.1.1" />
<PackageReference Include="Reactor.OxygenFilter.MSBuild" Version="0.1.3" />
</ItemGroup>
<Target Name="Copy" AfterTargets="Reobfuscate">
+1 -1
View File
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>0.1.0</Version>
<Description>Debugging mod for Reactor</Description>
+1 -1
View File
@@ -50,7 +50,7 @@ namespace Reactor.Patches
{
var handshake = MessageWriter.Get(SendOption.Reliable);
var plugins = Preloader.Chainloader.Plugins;
var plugins = IL2CPPChainloader.Instance.Plugins;
if (plugins.Values
.Select(pluginInfo => pluginInfo.Instance.GetType().GetCustomAttribute<ReactorPluginSideAttribute>())
+1 -1
View File
@@ -48,7 +48,7 @@ namespace Reactor.Patches
{
Text.Text = "Reactor " + typeof(ReactorPlugin).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
Text.Text += "\nBepInEx: " + Paths.BepInExVersion;
Text.Text += "\nMods: " + Preloader.Chainloader.Plugins.Count;
Text.Text += "\nMods: " + IL2CPPChainloader.Instance.Plugins.Count;
TextUpdated?.Invoke(Text);
}
}
+1 -1
View File
@@ -14,7 +14,7 @@ namespace Reactor
{
if (_instance == null)
{
_instance = Preloader.Chainloader.Plugins.Values.Select(x => x.Instance).OfType<T>().Single();
_instance = IL2CPPChainloader.Instance.Plugins.Values.Select(x => x.Instance).OfType<T>().Single();
}
return _instance;
+1 -1
View File
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>latest</LangVersion>
<Version>0.2.0</Version>
+1 -1
View File
@@ -86,7 +86,7 @@ namespace Reactor
{
Plugin.Log.LogInfo("Reloading all configs");
foreach (var pluginInfo in Preloader.Chainloader.Plugins.Values)
foreach (var pluginInfo in IL2CPPChainloader.Instance.Plugins.Values)
{
var config = ((BasePlugin) pluginInfo.Instance).Config;
if (!config.Any())