2009-07-28 21:32:10 +00:00
|
|
|
// Copyright (C) 2003 Dolphin Project.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
// 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
|
|
|
|
// the Free Software Foundation, version 2.0.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official SVN repository and contact information can be found at
|
|
|
|
// http://code.google.com/p/dolphin-emu/
|
|
|
|
|
|
|
|
#ifndef __ISOFILE_H_
|
|
|
|
#define __ISOFILE_H_
|
|
|
|
|
|
|
|
#include "Volume.h"
|
|
|
|
|
|
|
|
class PointerWrap;
|
|
|
|
class GameListItem
|
|
|
|
{
|
|
|
|
public:
|
2009-02-03 15:03:34 +00:00
|
|
|
GameListItem(const std::string& _rFileName);
|
2008-12-08 04:46:09 +00:00
|
|
|
~GameListItem();
|
|
|
|
|
|
|
|
bool IsValid() const {return m_Valid;}
|
|
|
|
const std::string& GetFileName() const {return m_FileName;}
|
2009-02-03 15:03:34 +00:00
|
|
|
const std::string& GetName(int index) const;
|
2008-12-08 04:46:09 +00:00
|
|
|
const std::string& GetCompany() const {return m_Company;}
|
2009-02-03 15:03:34 +00:00
|
|
|
const std::string& GetDescription(int index) const;
|
2008-12-08 04:46:09 +00:00
|
|
|
const std::string& GetUniqueID() const {return m_UniqueID;}
|
2009-05-02 18:06:42 +00:00
|
|
|
const std::string GetWiiFSPath() const;
|
2008-12-08 04:46:09 +00:00
|
|
|
DiscIO::IVolume::ECountry GetCountry() const {return m_Country;}
|
2009-06-06 07:36:22 +00:00
|
|
|
int GetPlatform() const {return m_Platform;}
|
2009-01-09 09:36:50 +00:00
|
|
|
const std::string& GetIssues() const {return m_Issues;}
|
2008-12-08 04:46:09 +00:00
|
|
|
bool IsCompressed() const {return m_BlobCompressed;}
|
|
|
|
u64 GetFileSize() const {return m_FileSize;}
|
|
|
|
u64 GetVolumeSize() const {return m_VolumeSize;}
|
|
|
|
#if defined(HAVE_WX) && HAVE_WX
|
|
|
|
const wxImage& GetImage() const {return m_Image;}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void DoState(PointerWrap &p);
|
2009-06-06 07:36:22 +00:00
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
GAMECUBE_DISC = 0,
|
|
|
|
WII_DISC,
|
|
|
|
WII_WAD,
|
|
|
|
NUMBER_OF_PLATFORMS
|
|
|
|
};
|
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
private:
|
|
|
|
std::string m_FileName;
|
2009-02-03 15:03:34 +00:00
|
|
|
std::string m_Name[6];
|
2008-12-08 04:46:09 +00:00
|
|
|
std::string m_Company;
|
2009-02-03 15:03:34 +00:00
|
|
|
std::string m_Description[6];
|
2008-12-08 04:46:09 +00:00
|
|
|
std::string m_UniqueID;
|
2009-01-09 09:36:50 +00:00
|
|
|
std::string m_Issues;
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
u64 m_FileSize;
|
|
|
|
u64 m_VolumeSize;
|
|
|
|
|
|
|
|
DiscIO::IVolume::ECountry m_Country;
|
2009-06-06 07:36:22 +00:00
|
|
|
int m_Platform;
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
#if defined(HAVE_WX) && HAVE_WX
|
|
|
|
wxImage m_Image;
|
|
|
|
#endif
|
|
|
|
bool m_Valid;
|
|
|
|
bool m_BlobCompressed;
|
|
|
|
u8* m_pImage;
|
|
|
|
u32 m_ImageSize;
|
|
|
|
|
|
|
|
bool LoadFromCache();
|
|
|
|
void SaveToCache();
|
|
|
|
|
|
|
|
std::string CreateCacheFilename();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|