[MusicalTalent] Disable this feature
This commit is contained in:
parent
ec01500766
commit
aac43f1e7d
@ -93,7 +93,7 @@ namespace Components
|
||||
Loader::Register(new ZoneBuilder());
|
||||
Loader::Register(new AssetHandler());
|
||||
Loader::Register(new Localization());
|
||||
Loader::Register(new MusicalTalent());
|
||||
//Loader::Register(new MusicalTalent());
|
||||
Loader::Register(new ServerCommands());
|
||||
Loader::Register(new StructuredData());
|
||||
Loader::Register(new ConnectProtocol());
|
||||
|
@ -17,9 +17,9 @@ namespace Components
|
||||
{
|
||||
Game::snd_alias_list_t* aliases = Game::DB_FindXAssetHeader(type, filename.data()).sound;
|
||||
|
||||
if (aliases)
|
||||
if (aliases && aliases->count > 0 && aliases->head && aliases->head->soundFile)
|
||||
{
|
||||
if (aliases->head->soundFile->type == 2)
|
||||
if (aliases->head->soundFile->type == Game::snd_alias_type_t::SAT_STREAMED)
|
||||
{
|
||||
aliases->head->soundFile->data.stream.name = MusicalTalent::SoundAliasList[Utils::String::ToLower(filename)];
|
||||
}
|
||||
|
@ -222,14 +222,12 @@ namespace Game
|
||||
const void *initial_ptr;
|
||||
};
|
||||
|
||||
/* 526 */
|
||||
struct MssSound
|
||||
{
|
||||
_AILSOUNDINFO info;
|
||||
char *data;
|
||||
};
|
||||
|
||||
/* 527 */
|
||||
struct LoadedSound
|
||||
{
|
||||
const char *name;
|
||||
@ -242,7 +240,7 @@ namespace Game
|
||||
StreamedSound stream;
|
||||
};
|
||||
|
||||
struct SoundFile // 0xC
|
||||
struct SoundFile
|
||||
{
|
||||
snd_alias_type_t type;
|
||||
bool exists;
|
||||
|
Loading…
Reference in New Issue
Block a user