mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
allow for extracting apploader/dol from gc/wii images without having to extract the whole fst. for now, the wii extraction just comes from partition 1.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4746 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
7816bc6900
commit
37b9fed89e
3 changed files with 39 additions and 4 deletions
|
@ -118,9 +118,9 @@ bool CFileSystemGCWii::ExportFile(const char* _rFullPath, const char* _rExportFi
|
|||
|
||||
bool CFileSystemGCWii::ExportApploader(const char* _rExportFolder) const
|
||||
{
|
||||
u32 AppSize = Read32(0x2440 + 0x14) << m_OffsetShift;// apploader size
|
||||
AppSize += Read32(0x2440 + 0x18) << m_OffsetShift; // + trailer size
|
||||
AppSize += 0x20; // + header size
|
||||
u32 AppSize = Read32(0x2440 + 0x14);// apploader size
|
||||
AppSize += Read32(0x2440 + 0x18); // + trailer size
|
||||
AppSize += 0x20; // + header size
|
||||
DEBUG_LOG(DISCIO,"AppSize -> %x", AppSize);
|
||||
|
||||
u8* buffer = new u8[AppSize];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue