From 3b371691afe0bbb28b2beff9ead743505e54e39d Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Fri, 13 Dec 2019 18:53:07 -0600 Subject: [PATCH] Fixed some dumb Net3 inconsistencies by a different conditional compilation thats less gross --- IPA.Loader/Loader/PluginLoader.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/IPA.Loader/Loader/PluginLoader.cs b/IPA.Loader/Loader/PluginLoader.cs index 58c5ffff..984fa3ee 100644 --- a/IPA.Loader/Loader/PluginLoader.cs +++ b/IPA.Loader/Loader/PluginLoader.cs @@ -12,6 +12,10 @@ using System.Reflection; using System.Text.RegularExpressions; using System.Threading.Tasks; using Version = SemVer.Version; +#if NET4 +using Task = System.Threading.Tasks.Task; +using TaskEx = System.Threading.Tasks.Task; +#endif #if NET3 using Net3_Proxy; using Path = Net3_Proxy.Path; @@ -27,11 +31,7 @@ namespace IPA.Loader public class PluginLoader { internal static Task LoadTask() => -#if NET3 TaskEx.Run(() => -#else - Task.Run(() => -#endif { YeetIfNeeded();