mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Fix screenshot offset as well as screenshot aspect ratio, also use PNG instead of BMP thanks to issue 1186.
Fix for opening.bnr containing bad chars where the loop would stop when encountering one (fixes Rogue Leader description, which was using 0x0d and 0x0a) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3899 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -57,7 +57,7 @@ CBannerLoaderGC::~CBannerLoaderGC()
|
||||
bool
|
||||
CBannerLoaderGC::IsValid()
|
||||
{
|
||||
return(m_IsValid);
|
||||
return m_IsValid;
|
||||
}
|
||||
|
||||
|
||||
@ -66,13 +66,13 @@ CBannerLoaderGC::GetBanner(u32* _pBannerImage)
|
||||
{
|
||||
if (!IsValid())
|
||||
{
|
||||
return(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
DVDBanner2* pBanner = (DVDBanner2*)m_pBannerFile;
|
||||
decode5A3image(_pBannerImage, pBanner->image, DVD_BANNER_WIDTH, DVD_BANNER_HEIGHT);
|
||||
|
||||
return(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@ -83,7 +83,7 @@ CBannerLoaderGC::GetName(std::string _rName[])
|
||||
|
||||
if (!IsValid())
|
||||
{
|
||||
return(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
// find Banner type
|
||||
@ -151,12 +151,9 @@ CBannerLoaderGC::GetCompany(std::string& _rCompany)
|
||||
|
||||
DVDBanner2* pBanner = (DVDBanner2*)m_pBannerFile;
|
||||
|
||||
if (!CopyToStringAndCheck(_rCompany, pBanner->comment[0].shortMaker))
|
||||
{
|
||||
return(false);
|
||||
}
|
||||
CopyToStringAndCheck(_rCompany, pBanner->comment[0].shortMaker);
|
||||
|
||||
return(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@ -167,7 +164,7 @@ CBannerLoaderGC::GetDescription(std::string* _rDescription)
|
||||
|
||||
if (!IsValid())
|
||||
{
|
||||
return(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
// find Banner type
|
||||
|
Reference in New Issue
Block a user