This commit is contained in:
marauder2k7 2026-05-27 20:20:07 +01:00
parent 52037b3e82
commit 7d9497ec75
2 changed files with 1 additions and 20 deletions

View file

@ -456,24 +456,6 @@ U32 SoundAsset::load()
return mLoadedState; return mLoadedState;
} }
bool SoundAsset::_setSoundFile(void* object, const char* index, const char* data)
{
SoundAsset* pData = static_cast<SoundAsset*>(object);
U32 id = 0;
if (index)
id = dAtoui(index);
// Update.
pData->mSoundFile[id] = StringTable->insert(data, true);
if (pData->mSoundFile[id] == StringTable->EmptyString())
pData->mSoundPath[id] = StringTable->EmptyString();
// Refresh the asset.
pData->refreshAsset();
return true;
}
bool SoundAsset::slotVisible(void* object, const char* index) bool SoundAsset::slotVisible(void* object, const char* index)
{ {
S32 idx = index ? dAtoi(index) : 0; S32 idx = index ? dAtoi(index) : 0;

View file

@ -161,7 +161,6 @@ public:
/// Declare Console Object. /// Declare Console Object.
DECLARE_CONOBJECT(SoundAsset); DECLARE_CONOBJECT(SoundAsset);
static bool _setSoundFile(void* object, const char* index, const char* data);
static bool slotVisible(void* object, const char* index); static bool slotVisible(void* object, const char* index);
U32 load() override; U32 load() override;