mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 10:45:16 +01:00
Fix override of RCT classic audio on startup
This commit is contained in:
@@ -109,7 +109,6 @@ namespace OpenRCT2::Audio
|
||||
baseAudio = objManager.LoadObject(AudioObjectIdentifiers::Rct2cBase);
|
||||
if (baseAudio != nullptr)
|
||||
{
|
||||
baseAudio->SetIdentifier(AudioObjectIdentifiers::Rct2Base);
|
||||
_soundsAudioObjectEntryIndex = objManager.GetLoadedObjectEntryIndex(baseAudio);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "ObjectFactory.h"
|
||||
|
||||
#include "../OpenRCT2.h"
|
||||
#include "../audio/audio.h"
|
||||
#include "../core/Console.hpp"
|
||||
#include "../core/File.h"
|
||||
#include "../core/FileStream.h"
|
||||
@@ -516,6 +517,10 @@ namespace ObjectFactory
|
||||
{
|
||||
auto id = Json::GetString(jRoot["id"]);
|
||||
|
||||
// HACK Disguise RCT Classic audio as RCT2 audio so asset packs override correctly
|
||||
if (id == OpenRCT2::Audio::AudioObjectIdentifiers::Rct2cBase)
|
||||
id = OpenRCT2::Audio::AudioObjectIdentifiers::Rct2Base;
|
||||
|
||||
ObjectEntryDescriptor descriptor;
|
||||
auto originalId = Json::GetString(jRoot["originalId"]);
|
||||
if (originalId.length() == 8 + 1 + 8 + 1 + 8)
|
||||
|
||||
Reference in New Issue
Block a user