From 09fa9d470674f3d16a2fd1407e9b6b710da95259 Mon Sep 17 00:00:00 2001 From: Lily Date: Sun, 26 Jun 2022 15:01:12 -0400 Subject: [PATCH] No, use the plugin --- Utils/ReMod.Core.Downloader.cs | 56 ++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/Utils/ReMod.Core.Downloader.cs b/Utils/ReMod.Core.Downloader.cs index 45bb8a7..72097ba 100644 --- a/Utils/ReMod.Core.Downloader.cs +++ b/Utils/ReMod.Core.Downloader.cs @@ -1,28 +1,30 @@ -using System; -using System.Net; -using System.Reflection; -using MelonLoader; +// using System; +// using System.Net; +// using System.Reflection; +// using MelonLoader; +// +// namespace TeleporterVR.Utils { +// public class ReMod_Core_Downloader { +// internal static bool failed; +// public static void LoadReModCore(out Assembly loadedAssembly) { +// byte[] bytes = null; +// var wc = new WebClient(); +// try { +// bytes = wc.DownloadData("https://github.com/RequiDev/ReMod.Core/releases/latest/download/ReMod.Core.dll"); +// loadedAssembly = Assembly.Load(bytes); +// Main.Log("Successfully Loaded ReMod.Core", Main.IsDebug); +// } +// catch (WebException e) { +// failed = true; +// Main.Logger.Error($"Unable to Load Core Dep ReModCore: {e}"); +// } +// catch (BadImageFormatException) { +// failed = true; +// loadedAssembly = null; +// } +// loadedAssembly = null; +// } +// } +// } -namespace TeleporterVR.Utils { - public class ReMod_Core_Downloader { - internal static bool failed; - public static void LoadReModCore(out Assembly loadedAssembly) { - byte[] bytes = null; - var wc = new WebClient(); - try { - bytes = wc.DownloadData("https://github.com/RequiDev/ReMod.Core/releases/latest/download/ReMod.Core.dll"); - loadedAssembly = Assembly.Load(bytes); - Main.Log("Successfully Loaded ReMod.Core", Main.IsDebug); - } - catch (WebException e) { - failed = true; - Main.Logger.Error($"Unable to Load Core Dep ReModCore: {e}"); - } - catch (BadImageFormatException) { - failed = true; - loadedAssembly = null; - } - loadedAssembly = null; - } - } -} \ No newline at end of file +// Use Penny's ReMod.Core.Updater Plugin to download the latest version of ReMod.Core.dll \ No newline at end of file