diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2009-05-21 19:19:15 +0000 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2009-05-21 19:19:15 +0000 |
| commit | d210fbac2c1a934e3490f2da5068a201a1657106 (patch) | |
| tree | 0eef3cba5cd3d1654614bfc2644c9b1916270205 /Source/Core/DiscIO/Src/VolumeWiiCrypted.cpp | |
| parent | ab6a38a18f803bdabd513c1c23817f4b78598fd5 (diff) | |
Wii images can now be scrubbed and compressed (my z:tp wii is now 1.08GB :D )
Currently scrubbing will display a warning that it removes the garbage data PERMENENTLY from the original file (mainly for speed of scrubbing). It could be removed in the future if people agree with me, since it is indeed just garbage.
Any tips for making scrubbing faster would be welcomed :)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3267 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/VolumeWiiCrypted.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/VolumeWiiCrypted.cpp | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/Source/Core/DiscIO/Src/VolumeWiiCrypted.cpp b/Source/Core/DiscIO/Src/VolumeWiiCrypted.cpp index ed9a9bcf8c..324ec878a8 100644 --- a/Source/Core/DiscIO/Src/VolumeWiiCrypted.cpp +++ b/Source/Core/DiscIO/Src/VolumeWiiCrypted.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2003-2008 Dolphin Project. +// Copyright (C) 2003-2009 Dolphin Project. // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -22,7 +22,9 @@ namespace DiscIO { -CVolumeWiiCrypted::CVolumeWiiCrypted(IBlobReader* _pReader, u64 _VolumeOffset, const unsigned char* _pVolumeKey) + +CVolumeWiiCrypted::CVolumeWiiCrypted(IBlobReader* _pReader, u64 _VolumeOffset, + const unsigned char* _pVolumeKey) : m_pReader(_pReader), m_pBuffer(0), m_VolumeOffset(_VolumeOffset), @@ -53,8 +55,7 @@ bool CVolumeWiiCrypted::RAWRead( u64 _Offset, u64 _Length, u8* _pBuffer ) const return true; } -bool -CVolumeWiiCrypted::Read(u64 _ReadOffset, u64 _Length, u8* _pBuffer) const +bool CVolumeWiiCrypted::Read(u64 _ReadOffset, u64 _Length, u8* _pBuffer) const { if (m_pReader == NULL) { @@ -97,8 +98,7 @@ CVolumeWiiCrypted::Read(u64 _ReadOffset, u64 _Length, u8* _pBuffer) const return(true); } -std::string -CVolumeWiiCrypted::GetUniqueID() const +std::string CVolumeWiiCrypted::GetUniqueID() const { if (m_pReader == NULL) { @@ -118,8 +118,7 @@ CVolumeWiiCrypted::GetUniqueID() const } -IVolume::ECountry -CVolumeWiiCrypted::GetCountry() const +IVolume::ECountry CVolumeWiiCrypted::GetCountry() const { if (!m_pReader) { @@ -181,8 +180,7 @@ CVolumeWiiCrypted::GetCountry() const return(country); } -std::string -CVolumeWiiCrypted::GetMakerID() const +std::string CVolumeWiiCrypted::GetMakerID() const { if (m_pReader == NULL) { @@ -201,8 +199,7 @@ CVolumeWiiCrypted::GetMakerID() const return(makerID); } -std::string -CVolumeWiiCrypted::GetName() const +std::string CVolumeWiiCrypted::GetName() const { if (m_pReader == NULL) { @@ -219,8 +216,7 @@ CVolumeWiiCrypted::GetName() const return(name); } -u32 -CVolumeWiiCrypted::GetFSTSize() const +u32 CVolumeWiiCrypted::GetFSTSize() const { if (m_pReader == NULL) { @@ -237,8 +233,7 @@ CVolumeWiiCrypted::GetFSTSize() const return(size); } -std::string -CVolumeWiiCrypted::GetApploaderDate() const +std::string CVolumeWiiCrypted::GetApploaderDate() const { if (m_pReader == NULL) { @@ -257,9 +252,7 @@ CVolumeWiiCrypted::GetApploaderDate() const return(date); } - -u64 -CVolumeWiiCrypted::GetSize() const +u64 CVolumeWiiCrypted::GetSize() const { if (m_pReader) { @@ -271,5 +264,4 @@ CVolumeWiiCrypted::GetSize() const } } - } // namespace |
