Browse Source

Fixed some dumb Net3 inconsistencies by a different conditional compilation thats less gross

4.0.0-beta
Anairkoen Schno 5 years ago
parent
commit
3b371691af
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      IPA.Loader/Loader/PluginLoader.cs

+ 4
- 4
IPA.Loader/Loader/PluginLoader.cs View File

@ -12,6 +12,10 @@ using System.Reflection;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
using Version = SemVer.Version; using Version = SemVer.Version;
#if NET4
using Task = System.Threading.Tasks.Task;
using TaskEx = System.Threading.Tasks.Task;
#endif
#if NET3 #if NET3
using Net3_Proxy; using Net3_Proxy;
using Path = Net3_Proxy.Path; using Path = Net3_Proxy.Path;
@ -27,11 +31,7 @@ namespace IPA.Loader
public class PluginLoader public class PluginLoader
{ {
internal static Task LoadTask() => internal static Task LoadTask() =>
#if NET3
TaskEx.Run(() => TaskEx.Run(() =>
#else
Task.Run(() =>
#endif
{ {
YeetIfNeeded(); YeetIfNeeded();


Loading…
Cancel
Save