[MusicalTalent] Disable this feature

This commit is contained in:
momo5502 2017-06-18 12:36:19 +02:00
parent ec01500766
commit aac43f1e7d
3 changed files with 4 additions and 6 deletions

View File

@ -93,7 +93,7 @@ namespace Components
Loader::Register(new ZoneBuilder()); Loader::Register(new ZoneBuilder());
Loader::Register(new AssetHandler()); Loader::Register(new AssetHandler());
Loader::Register(new Localization()); Loader::Register(new Localization());
Loader::Register(new MusicalTalent()); //Loader::Register(new MusicalTalent());
Loader::Register(new ServerCommands()); Loader::Register(new ServerCommands());
Loader::Register(new StructuredData()); Loader::Register(new StructuredData());
Loader::Register(new ConnectProtocol()); Loader::Register(new ConnectProtocol());

View File

@ -17,9 +17,9 @@ namespace Components
{ {
Game::snd_alias_list_t* aliases = Game::DB_FindXAssetHeader(type, filename.data()).sound; 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)]; aliases->head->soundFile->data.stream.name = MusicalTalent::SoundAliasList[Utils::String::ToLower(filename)];
} }

View File

@ -222,14 +222,12 @@ namespace Game
const void *initial_ptr; const void *initial_ptr;
}; };
/* 526 */
struct MssSound struct MssSound
{ {
_AILSOUNDINFO info; _AILSOUNDINFO info;
char *data; char *data;
}; };
/* 527 */
struct LoadedSound struct LoadedSound
{ {
const char *name; const char *name;
@ -242,7 +240,7 @@ namespace Game
StreamedSound stream; StreamedSound stream;
}; };
struct SoundFile // 0xC struct SoundFile
{ {
snd_alias_type_t type; snd_alias_type_t type;
bool exists; bool exists;