mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
grah 2
This commit is contained in:
parent
a8f48fcb54
commit
b61ea5aaec
@ -16,16 +16,21 @@ namespace NewHorizons.Handlers
|
||||
private static Dictionary<string, AudioType> _customAudioTypes;
|
||||
private static List<AudioLibrary.AudioEntry> _audioEntries;
|
||||
|
||||
public static void Init()
|
||||
public static void Init(bool titleScreen = false)
|
||||
{
|
||||
_customAudioTypes = new Dictionary<string, AudioType>();
|
||||
_audioEntries = new List<AudioLibrary.AudioEntry>();
|
||||
|
||||
Delay.RunWhenAndInNUpdates(
|
||||
PostInit,
|
||||
() => Locator.GetAudioManager()?._libraryAsset != null,
|
||||
1
|
||||
);
|
||||
if (titleScreen)
|
||||
Delay.RunWhenAndInNUpdates(
|
||||
PostInit,
|
||||
() => Locator.GetAudioManager()?._libraryAsset != null,
|
||||
1
|
||||
);
|
||||
else
|
||||
Delay.RunWhen(() => Locator.GetAudioManager()?._libraryAsset != null,
|
||||
PostInit
|
||||
);
|
||||
}
|
||||
|
||||
private static void PostInit()
|
||||
|
||||
@ -422,7 +422,7 @@ namespace NewHorizons
|
||||
|
||||
if (isTitleScreen && CustomTitleScreen)
|
||||
{
|
||||
AudioTypeHandler.Init();
|
||||
AudioTypeHandler.Init(true);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user