mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
Use netstandard2.1
This commit is contained in:
7 files changed
+7
-7
No files matched your search
+1
-1
@@ -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,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>
|
||||
|
||||
@@ -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>())
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
<TargetFramework>netstandard2.1</TargetFramework>
|
||||
<LangVersion>latest</LangVersion>
|
||||
|
||||
<Version>0.2.0</Version>
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user