mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
18 lines
477 B
C++
18 lines
477 B
C++
#include "AssetLoaderSoundAliasList.h"
|
|
|
|
#include "Game/IW4/IW4.h"
|
|
#include "ObjLoading.h"
|
|
#include "Pool/GlobalAssetPool.h"
|
|
|
|
#include <cstring>
|
|
|
|
using namespace IW4;
|
|
|
|
void* AssetLoaderSoundAliasList::CreateEmptyAsset(const std::string& assetName, MemoryManager* memory)
|
|
{
|
|
auto* sndAliasList = memory->Create<snd_alias_list_t>();
|
|
memset(sndAliasList, 0, sizeof(snd_alias_list_t));
|
|
sndAliasList->aliasName = memory->Dup(assetName.c_str());
|
|
return sndAliasList;
|
|
}
|