summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/Src/FileSystemGCWii.cpp
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2009-12-29 13:59:38 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2009-12-29 13:59:38 +0000
commit37b9fed89e478dd3687adf095757252553e6dff3 (patch)
treedcd7f75b3da481e603e20a3ed011b7c0e1f373b3 /Source/Core/DiscIO/Src/FileSystemGCWii.cpp
parent7816bc6900e77c0f9584b4013a13e315596e58e2 (diff)
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
Diffstat (limited to 'Source/Core/DiscIO/Src/FileSystemGCWii.cpp')
-rw-r--r--Source/Core/DiscIO/Src/FileSystemGCWii.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/Src/FileSystemGCWii.cpp b/Source/Core/DiscIO/Src/FileSystemGCWii.cpp
index 163046a5b1..0a8314c959 100644
--- a/Source/Core/DiscIO/Src/FileSystemGCWii.cpp
+++ b/Source/Core/DiscIO/Src/FileSystemGCWii.cpp
@@ -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];