mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-22 11:31:57 -04:00
Match LegoCacheSoundManager::FindSoundByKey (#991)
* Match LegoCacheSoundManager::FindSoundByKey * Remove space
This commit is contained in:
parent
133a312aee
commit
4898a55508
@ -60,18 +60,15 @@ MxResult LegoCacheSoundManager::Tickle()
|
|||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x1003d170
|
// FUNCTION: LEGO1 0x1003d170
|
||||||
LegoCacheSound* LegoCacheSoundManager::FindSoundByKey(const char* p_key)
|
LegoCacheSound* LegoCacheSoundManager::FindSoundByKey(const char* p_key)
|
||||||
{
|
{
|
||||||
// TODO
|
char* key = new char[strlen(p_key) + 1];
|
||||||
char* x = new char[strlen(p_key) + 1];
|
strcpy(key, p_key);
|
||||||
strcpy(x, p_key);
|
|
||||||
|
|
||||||
Set100d6b4c::iterator setIter;
|
Set100d6b4c::iterator it = m_set.find(LegoCacheSoundEntry(NULL, key));
|
||||||
for (setIter = m_set.begin(); setIter != m_set.end(); setIter++) {
|
if (it != m_set.end()) {
|
||||||
if (!strcmpi((*setIter).GetName(), x)) {
|
return (*it).GetSound();
|
||||||
return (*setIter).GetSound();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -104,12 +101,14 @@ LegoCacheSound* LegoCacheSoundManager::ManageSoundEntry(LegoCacheSound* p_sound)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1003dae0
|
// FUNCTION: LEGO1 0x1003dae0
|
||||||
|
// FUNCTION: BETA10 0x10065502
|
||||||
LegoCacheSound* LegoCacheSoundManager::Play(const char* p_key, const char* p_name, MxBool p_looping)
|
LegoCacheSound* LegoCacheSoundManager::Play(const char* p_key, const char* p_name, MxBool p_looping)
|
||||||
{
|
{
|
||||||
return Play(FindSoundByKey(p_key), p_name, p_looping);
|
return Play(FindSoundByKey(p_key), p_name, p_looping);
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1003db10
|
// FUNCTION: LEGO1 0x1003db10
|
||||||
|
// FUNCTION: BETA10 0x10065537
|
||||||
LegoCacheSound* LegoCacheSoundManager::Play(LegoCacheSound* p_sound, const char* p_name, MxBool p_looping)
|
LegoCacheSound* LegoCacheSoundManager::Play(LegoCacheSound* p_sound, const char* p_name, MxBool p_looping)
|
||||||
{
|
{
|
||||||
if (!p_sound) {
|
if (!p_sound) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user