mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove unused argument pUser
of LoadAsset
function
This commit is contained in:
parent
82ba8e0bb8
commit
e12f59b445
|
@ -129,7 +129,7 @@ int CMenus::EntitiesScan(const char *pName, int IsDir, int DirType, void *pUser)
|
|||
}
|
||||
|
||||
template<typename TName>
|
||||
static void LoadAsset(TName *pAssetItem, const char *pAssetName, IGraphics *pGraphics, void *pUser)
|
||||
static void LoadAsset(TName *pAssetItem, const char *pAssetName, IGraphics *pGraphics)
|
||||
{
|
||||
char aBuff[IO_MAX_PATH_LENGTH];
|
||||
|
||||
|
@ -179,7 +179,7 @@ static int AssetScan(const char *pName, int IsDir, int DirType, std::vector<TNam
|
|||
|
||||
TName AssetItem;
|
||||
str_copy(AssetItem.m_aName, pName);
|
||||
LoadAsset(&AssetItem, pAssetName, pGraphics, pUser);
|
||||
LoadAsset(&AssetItem, pAssetName, pGraphics);
|
||||
vAssetList.push_back(AssetItem);
|
||||
}
|
||||
else
|
||||
|
@ -194,7 +194,7 @@ static int AssetScan(const char *pName, int IsDir, int DirType, std::vector<TNam
|
|||
|
||||
TName AssetItem;
|
||||
str_copy(AssetItem.m_aName, aName);
|
||||
LoadAsset(&AssetItem, pAssetName, pGraphics, pUser);
|
||||
LoadAsset(&AssetItem, pAssetName, pGraphics);
|
||||
vAssetList.push_back(AssetItem);
|
||||
}
|
||||
}
|
||||
|
@ -356,7 +356,7 @@ void InitAssetList(std::vector<TName> &vAssetList, const char *pAssetPath, const
|
|||
{
|
||||
TName AssetItem;
|
||||
str_copy(AssetItem.m_aName, "default");
|
||||
LoadAsset(&AssetItem, pAssetName, pGraphics, Caller);
|
||||
LoadAsset(&AssetItem, pAssetName, pGraphics);
|
||||
vAssetList.push_back(AssetItem);
|
||||
|
||||
// load assets
|
||||
|
|
Loading…
Reference in a new issue