mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 02:52:30 +02:00
BannerLoaderWii: Removed #if 0'd code.
This commit is contained in:
parent
97420c6ec6
commit
a3d9b22c27
@ -31,42 +31,8 @@ CBannerLoaderWii::CBannerLoaderWii(DiscIO::IVolume *pVolume)
|
|||||||
|
|
||||||
if (!File::Exists(Filename))
|
if (!File::Exists(Filename))
|
||||||
{
|
{
|
||||||
// TODO(XK): Finish the 'commented' code. Turns out the banner.bin
|
|
||||||
// from the savefiles is very different from the banner.bin
|
|
||||||
// inside opening.bnr
|
|
||||||
#if 0
|
|
||||||
// Creating title folder
|
|
||||||
std::string titleFolder = StringFromFormat("%stitle/%08x/%08x/data/",
|
|
||||||
File::GetUserPath(D_WIIUSER_IDX).c_str(), (u32)(TitleID>>32), (u32)TitleID);
|
|
||||||
if (!File::Exists(titleFolder))
|
|
||||||
File::CreateFullPath(titleFolder);
|
|
||||||
|
|
||||||
// Extracting banner.bin from opening.bnr
|
|
||||||
std::string bnrFilename = StringFromFormat("%stitle/%08x/%08x/data/opening.bnr",
|
|
||||||
File::GetUserPath(D_WIIUSER_IDX).c_str(), (u32)(TitleID>>32), (u32)TitleID);
|
|
||||||
|
|
||||||
if (!_rFileSystem.ExportFile("opening.bnr", bnrFilename))
|
|
||||||
{
|
|
||||||
m_IsValid = false;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
CARCFile bnrArc (bnrFilename, 0x600);
|
|
||||||
|
|
||||||
if (!bnrArc.ExportFile("meta/banner.bin", Filename))
|
|
||||||
{
|
|
||||||
m_IsValid = false;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Now we have an LZ77-compressed file with a short IMD5 header
|
|
||||||
// TODO: Finish the job
|
|
||||||
|
|
||||||
File::Delete(bnrFilename);
|
|
||||||
#else
|
|
||||||
m_IsValid = false;
|
m_IsValid = false;
|
||||||
return;
|
return;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// load the banner.bin
|
// load the banner.bin
|
||||||
|
Loading…
Reference in New Issue
Block a user