this should be OK: display some default info when no save exist

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2133 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hyperiris 2009-02-07 17:31:35 +00:00
parent d4c9a8a5fc
commit d5bcb81872
3 changed files with 35 additions and 61 deletions

View File

@ -94,11 +94,6 @@ CBannerLoaderGC::GetBanner(u32* _pBannerImage)
bool
CBannerLoaderGC::GetName(std::string _rName[])
{
for (int i = 0; i < 6; i++)
{
_rName[i] = "no name";
}
bool returnCode = false;
if (!IsValid())
@ -143,7 +138,7 @@ CBannerLoaderGC::GetName(std::string _rName[])
bool
CBannerLoaderGC::GetCompany(std::string& _rCompany)
{
_rCompany = "invalid images";
_rCompany = "N/A";
if (!IsValid())
{
@ -164,11 +159,6 @@ CBannerLoaderGC::GetCompany(std::string& _rCompany)
bool
CBannerLoaderGC::GetDescription(std::string* _rDescription)
{
for (int i = 0; i< 6; i++)
{
_rDescription[i] = "";
}
bool returnCode = false;
if (!IsValid())

View File

@ -73,11 +73,8 @@ CBannerLoaderWii::IsValid()
bool
CBannerLoaderWii::GetBanner(u32* _pBannerImage)
{
if (!IsValid())
if (IsValid())
{
return false;
}
SWiiBanner* pBanner = (SWiiBanner*)m_pBannerFile;
static u32 Buffer[192 * 64];
@ -91,24 +88,15 @@ CBannerLoaderWii::GetBanner(u32* _pBannerImage)
_pBannerImage[y*96+x] = Buffer[(y*192*2)+(x*2)];
}
}
}
return true;
}
bool
CBannerLoaderWii::GetName(std::string* _rName)
{
for (int i = 0; i < 6; i++)
if (IsValid())
{
_rName[i] = "no name";
}
if (!IsValid())
{
return false;
}
// find Banner type
SWiiBanner* pBanner = (SWiiBanner*)m_pBannerFile;
@ -121,6 +109,7 @@ CBannerLoaderWii::GetName(std::string* _rName)
}
return true;
}
}
return false;
}
@ -136,16 +125,8 @@ CBannerLoaderWii::GetCompany(std::string& _rCompany)
bool
CBannerLoaderWii::GetDescription(std::string* _rDescription)
{
for (int i = 0; i< 6; i++)
if (IsValid())
{
_rDescription[i] = "";
}
if (!IsValid())
{
return false;
}
// find Banner type
SWiiBanner* pBanner = (SWiiBanner*)m_pBannerFile;
@ -158,6 +139,7 @@ CBannerLoaderWii::GetDescription(std::string* _rDescription)
}
return true;
}
}
return false;
}

View File

@ -59,6 +59,8 @@ GameListItem::GameListItem(const std::string& _rFileName)
if (pVolume != NULL)
{
m_Name[0] = _rFileName;
m_Company = "N/A";
m_Description[0] = "No Description";
m_Country = pVolume->GetCountry();
m_FileSize = File::GetSize(_rFileName.c_str());
m_VolumeSize = pVolume->GetSize();