added gui support for compressed ISOs...

compression doesn't work and will be fixed (hopefully :D)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@537 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
fires.gc
2008-09-16 12:09:35 +00:00
parent 2ab92c9222
commit ff863e0cec
7 changed files with 103 additions and 5 deletions

View File

@ -25,6 +25,7 @@
#include "Filesystem.h"
#include "BannerLoader.h"
#include "FileSearch.h"
#include "Blob.h"
#define DVD_BANNER_WIDTH 96
#define DVD_BANNER_HEIGHT 32
@ -34,7 +35,8 @@ static u32 g_ImageTemp[DVD_BANNER_WIDTH * DVD_BANNER_HEIGHT];
CISOFile::CISOFile(const std::string& _rFileName)
: m_FileName(_rFileName),
m_FileSize(0),
m_Valid(false)
m_Valid(false),
m_BlobCompressed(false)
{
DiscIO::IVolume* pVolume = DiscIO::CreateVolumeFromFilename(_rFileName);
@ -45,6 +47,7 @@ CISOFile::CISOFile(const std::string& _rFileName)
m_FileSize = pVolume->GetSize();
m_Name = pVolume->GetName();
m_UniqueID = pVolume->GetUniqueID();
m_BlobCompressed = DiscIO::IsCompressedBlob(_rFileName.c_str());
// check if we can get some infos from the banner file too
DiscIO::IFileSystem* pFileSystem = DiscIO::CreateFileSystem(*pVolume);