hotfix for an audio regression
This commit is contained in:
Will Corby 2022-12-28 16:29:57 -08:00 committed by GitHub
commit c406c5feab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 8 deletions

View File

@ -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>

View File

@ -89,13 +89,13 @@ namespace NewHorizons.Utility
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:

View File

@ -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
}
}

View File

@ -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" ]