Skip to content

Commit

Permalink
Use Harmony 2
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiswkearney committed Mar 26, 2020
1 parent e302621 commit 2523219
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions HitScoreVisualizer/Config.cs
Expand Up @@ -122,7 +122,7 @@ public struct SegmentJudgment
private const string DEFAULT_JSON = @"{
""majorVersion"": 2,
""minorVersion"": 4,
""patchVersion"": 3,
""patchVersion"": 4,
""isDefaultConfig"": true,
""displayMode"": ""format"",
""judgments"": [
Expand Down Expand Up @@ -319,9 +319,9 @@ public static void load()
loaded.patchVersion = 1;
isDirty = true;
}
if (loaded.majorVersion == 2 && loaded.minorVersion == 4 && loaded.patchVersion < 3)
if (loaded.majorVersion == 2 && loaded.minorVersion == 4 && loaded.patchVersion < 4)
{
loaded.patchVersion = 3;
loaded.patchVersion = 4;
isDirty = true;
}
instance = loaded;
Expand Down
@@ -1,4 +1,4 @@
using Harmony;
using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
@@ -1,4 +1,4 @@
using Harmony;
using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
4 changes: 2 additions & 2 deletions HitScoreVisualizer/HitScoreVisualizer.csproj
Expand Up @@ -33,8 +33,8 @@
<LangVersion>7.3</LangVersion>
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony.1.2.0.1">
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Beat Saber\Libs\0Harmony.1.2.0.1.dll</HintPath>
<Reference Include="0Harmony">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Beat Saber\Libs\0Harmony.dll</HintPath>
</Reference>
<Reference Include="IPA.Loader, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down
8 changes: 4 additions & 4 deletions HitScoreVisualizer/Plugin.cs
@@ -1,4 +1,4 @@
using Harmony;
using HarmonyLib;
using IPA.Old;
using System;
using System.Reflection;
Expand All @@ -9,19 +9,19 @@ namespace HitScoreVisualizer
public class Plugin : IPlugin
{
public string Name => "HitScoreVisualizer";
public string Version => "2.4.3";
public string Version => "2.4.4";

internal const int majorVersion = 2;
internal const int minorVersion = 4;
internal const int patchVersion = 3;
internal const int patchVersion = 4;

public void OnApplicationStart()
{
SceneManager.activeSceneChanged += SceneManagerOnActiveSceneChanged;
SceneManager.sceneLoaded += SceneManager_sceneLoaded;
try
{
var harmony = HarmonyInstance.Create("com.arti.BeatSaber.HitScoreVisualizer");
var harmony = new Harmony("com.arti.BeatSaber.HitScoreVisualizer");
harmony.PatchAll(Assembly.GetExecutingAssembly());
}
catch (Exception e)
Expand Down

0 comments on commit 2523219

Please sign in to comment.