Skip to content

Commit

Permalink
1.8.2 (#472)
Browse files Browse the repository at this point in the history
hotfix for an audio regression
  • Loading branch information
JohnCorby committed Dec 29, 2022
2 parents ab4b510 + 11c68fc commit c406c5f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion NewHorizons/NewHorizons.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<DebugType>none</DebugType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="OWML" Version="2.8.0" />
<PackageReference Include="OWML" Version="2.9.0" />
<PackageReference Include="OuterWildsGameLibs" Version="1.1.13.393" />
<Reference Include="../Lib/System.ComponentModel.Annotations.dll" />
</ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions NewHorizons/Utility/AudioUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ private static async Task<AudioClip> GetAudioClip(string path)

switch (extension)
{
case ("wav"):
case (".wav"):
audioType = UnityEngine.AudioType.WAV;
break;
case ("ogg"):
case (".ogg"):
audioType = UnityEngine.AudioType.OGGVORBIS;
break;
case ("mp3"):
case (".mp3"):
audioType = UnityEngine.AudioType.MPEG;
break;
default:
Expand Down
2 changes: 0 additions & 2 deletions NewHorizons/Utility/Delay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ namespace NewHorizons.Utility
{
public static class Delay
{
#pragma warning disable CS0618 // Type or member is obsolete
public static void RunWhen(Func<bool> predicate, Action action) => Main.Instance.ModHelper.Events.Unity.RunWhen(predicate, action);
public static void FireInNUpdates(Action action, int n) => Main.Instance.ModHelper.Events.Unity.FireInNUpdates(action, n);
public static void FireOnNextUpdate(Action action) => Main.Instance.ModHelper.Events.Unity.FireOnNextUpdate(action);
#pragma warning restore CS0618 // Type or member is obsolete
}
}
4 changes: 2 additions & 2 deletions NewHorizons/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"author": "xen, Bwc9876, clay, MegaPiggy, John, Hawkbar, Trifid, Book",
"name": "New Horizons",
"uniqueName": "xen.NewHorizons",
"version": "1.8.1",
"owmlVersion": "2.8.0",
"version": "1.8.2",
"owmlVersion": "2.9.0",
"dependencies": [ "JohnCorby.VanillaFix", "_nebula.MenuFramework", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
"conflicts": [ "Raicuparta.QuantumSpaceBuddies", "PacificEngine.OW_Randomizer" ],
"pathsToPreserve": [ "planets", "systems", "translations" ]
Expand Down

0 comments on commit c406c5f

Please sign in to comment.