Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
No, use the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
MintLily committed Jun 26, 2022
1 parent 2d2b31c commit 09fa9d4
Showing 1 changed file with 29 additions and 27 deletions.
56 changes: 29 additions & 27 deletions Utils/ReMod.Core.Downloader.cs
Original file line number Diff line number Diff line change
@@ -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;
}
}
}
// Use Penny's ReMod.Core.Updater Plugin to download the latest version of ReMod.Core.dll

0 comments on commit 09fa9d4

Please sign in to comment.