Skip to content

Commit

Permalink
don't crash on bepinex
Browse files Browse the repository at this point in the history
  • Loading branch information
xKiraiChan committed Jan 9, 2022
1 parent 2999731 commit 25fe8e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion AstralBypass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System;
using System.Reflection;

[assembly: MelonInfo(typeof(Astrum.AstralBypass), nameof(Astrum.AstralBypass), "0.1.2", downloadLink: "github.com/Astrum-Project/" + nameof(Astrum.AstralBypass))]
[assembly: MelonInfo(typeof(Astrum.AstralBypass), nameof(Astrum.AstralBypass), "0.1.3", downloadLink: "github.com/Astrum-Project/" + nameof(Astrum.AstralBypass))]
[assembly: MelonColor(ConsoleColor.DarkMagenta)]

namespace Astrum
Expand Down
6 changes: 2 additions & 4 deletions IntegrityChecks.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#pragma warning disable CS0618 // Type or member is obsolete

using MelonLoader;
using MelonLoader;
using System;
using System.Collections.Generic;

Expand All @@ -16,7 +14,7 @@ static IntegrityChecks()
{
if (!versionSigs.TryGetValue((string)typeof(BuildInfo).GetField(nameof(BuildInfo.Version)).GetValue(null), out (string, int) data))
{
MelonLogger.Warning("[AstralBypass] Missing signature for your version of MelonLoader");
AstralCore.Logger.Warn("[AstralBypass] Missing signature for your version of MelonLoader");
return;
}

Expand Down
4 changes: 3 additions & 1 deletion PEBKACHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ public static class PEBKACHelper
{
private const string pluginsPath = "Plugins/AstralBypass.dll";
private const string modsPath = "Mods/AstralBypass.dll";
private const int renameExitStatus = 69_8153697; // random number, but the 69 should indicate that it's human written;
private const int renameExitStatus = 69420_3697; // random number, but the 69420 should indicate that it's human written;

public static void CheckForUserError()
{
if (Directory.Exists("BepInEx")) return;

if (File.Exists(pluginsPath)) return;

if (File.Exists(modsPath)) MoveToPlugins(modsPath);
Expand Down

0 comments on commit 25fe8e4

Please sign in to comment.