mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-11-23 21:22:07 +00:00
chore: addEmptyFootstepTableAsset does not need to return something
This commit is contained in:
@@ -11,18 +11,16 @@ using namespace T6;
|
||||
|
||||
namespace BSP
|
||||
{
|
||||
FootstepTableDef* BSPLinker::addEmptyFootstepTableAsset(const std::string& assetName) const
|
||||
void BSPLinker::addEmptyFootstepTableAsset(const std::string& assetName) const
|
||||
{
|
||||
if (assetName.length() == 0)
|
||||
return nullptr;
|
||||
if (assetName.empty())
|
||||
return;
|
||||
|
||||
auto* footstepTable = m_memory.Alloc<FootstepTableDef>();
|
||||
footstepTable->name = m_memory.Dup(assetName.c_str());
|
||||
memset(footstepTable->sndAliasTable, 0, sizeof(footstepTable->sndAliasTable));
|
||||
|
||||
m_context.AddAsset<AssetFootstepTable>(assetName, footstepTable);
|
||||
|
||||
return footstepTable;
|
||||
}
|
||||
|
||||
bool BSPLinker::addDefaultRequiredAssets(const BSPData& bsp) const
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace BSP
|
||||
[[nodiscard]] bool linkBSP(const BSPData& bsp) const;
|
||||
|
||||
private:
|
||||
T6::FootstepTableDef* addEmptyFootstepTableAsset(const std::string& assetName) const;
|
||||
void addEmptyFootstepTableAsset(const std::string& assetName) const;
|
||||
[[nodiscard]] bool addDefaultRequiredAssets(const BSPData& bsp) const;
|
||||
|
||||
MemoryManager& m_memory;
|
||||
|
||||
Reference in New Issue
Block a user