mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-06-19 20:04:26 +00:00
fix
This commit is contained in:
parent
52037b3e82
commit
7d9497ec75
2 changed files with 1 additions and 20 deletions
|
|
@ -456,24 +456,6 @@ U32 SoundAsset::load()
|
|||
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)
|
||||
{
|
||||
S32 idx = index ? dAtoi(index) : 0;
|
||||
|
|
|
|||
|
|
@ -160,8 +160,7 @@ public:
|
|||
|
||||
/// Declare Console Object.
|
||||
DECLARE_CONOBJECT(SoundAsset);
|
||||
|
||||
static bool _setSoundFile(void* object, const char* index, const char* data);
|
||||
|
||||
static bool slotVisible(void* object, const char* index);
|
||||
U32 load() override;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue