mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
added destructor
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2460 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -62,7 +62,15 @@ CNANDContentLoader::CNANDContentLoader(const std::string& _rName)
|
||||
{
|
||||
// _dbg_assert_msg_(BOOT, 0, "CNANDContentLoader loads neither folder nor file");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CNANDContentLoader::~CNANDContentLoader()
|
||||
{
|
||||
for (size_t i=0; i<m_TileMetaContent.size(); i++)
|
||||
{
|
||||
delete [] m_TileMetaContent[i].m_pData;
|
||||
}
|
||||
m_TileMetaContent.clear();
|
||||
}
|
||||
|
||||
SNANDContent* CNANDContentLoader::GetContentByIndex(int _Index)
|
||||
@ -125,7 +133,7 @@ bool CNANDContentLoader::CreateFromDirectory(const std::string& _rPath)
|
||||
sprintf(szFilename, "%s\\%08x.app", _rPath.c_str(), rContent.m_ContentID);
|
||||
|
||||
FILE* pFile = fopen(szFilename, "rb");
|
||||
// i have seen TMD which index to app which doesn't exist...
|
||||
// i have seen TMDs which index to app which doesn't exist...
|
||||
if (pFile != NULL)
|
||||
{
|
||||
u64 Size = File::GetSize(szFilename);
|
||||
|
Reference in New Issue
Block a user