constification, code style, changed vector<FileInfo*> to vector<FileInfo> for less allocs and more speed in debug mode

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@611 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2008-09-22 20:35:44 +00:00
parent 38f04809f1
commit cca92d4e38
12 changed files with 136 additions and 198 deletions

View File

@ -33,7 +33,7 @@
static u32 g_ImageTemp[DVD_BANNER_WIDTH * DVD_BANNER_HEIGHT];
CISOFile::CISOFile(const std::string& _rFileName)
GameListItem::GameListItem(const std::string& _rFileName)
: m_FileName(_rFileName),
m_FileSize(0),
m_Valid(false),
@ -65,7 +65,6 @@ CISOFile::CISOFile(const std::string& _rFileName)
pBannerLoader->GetName(m_Name, 0); //m_Country == DiscIO::IVolume::COUNTRY_JAP ? 1 : 0);
pBannerLoader->GetCompany(m_Company);
pBannerLoader->GetDescription(m_Description);
if (pBannerLoader->GetBanner(g_ImageTemp))
{
unsigned char* pImage = (unsigned char*)malloc(DVD_BANNER_WIDTH * DVD_BANNER_HEIGHT * 3);
@ -83,6 +82,7 @@ CISOFile::CISOFile(const std::string& _rFileName)
else
{
// default banner
}
delete pBannerLoader;
@ -98,7 +98,7 @@ CISOFile::CISOFile(const std::string& _rFileName)
}
CISOFile::~CISOFile()
GameListItem::~GameListItem()
{}