1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 20:13:07 +01:00

Fix #22634: Asset packs with sound effect overrides are not loaded correctly at startup

This commit is contained in:
Michael Steenbeek
2025-04-18 00:05:35 +02:00
committed by GitHub
parent e2668115c8
commit 188245ad69
2 changed files with 7 additions and 3 deletions

View File

@@ -570,9 +570,9 @@ namespace OpenRCT2
OpenProgress(STR_CHECKING_OBJECT_FILES);
_objectRepository->LoadOrConstruct(currentLanguage);
OpenProgress(STR_LOADING_GENERIC);
Audio::LoadAudioObjects();
// Asset packs need to be loaded before any of the objects they may override are.
// This is especially important to keep in mind with intransient objects like Audio objects,
// which are only loaded once.
if (!gOpenRCT2Headless)
{
OpenProgress(STR_CHECKING_ASSET_PACKS);
@@ -581,6 +581,9 @@ namespace OpenRCT2
_assetPackManager->Reload();
}
OpenProgress(STR_LOADING_GENERIC);
Audio::LoadAudioObjects();
OpenProgress(STR_CHECKING_TRACK_DESIGN_FILES);
_trackDesignRepository->Scan(currentLanguage);