game name and description WIP: cache all 6 languages, so we don't need refresh cache after we changes language.

move some WIN32 code to CGameListCtrl.
nakee, please check linux build, sorry I've not enough time to setup a linux dev environment.
and, who can read German helps me to test game name and description display, thanks.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2090 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hyperiris
2009-02-03 15:03:34 +00:00
parent 4660943322
commit 9e3fed40f2
14 changed files with 244 additions and 154 deletions

View File

@ -24,14 +24,14 @@ class PointerWrap;
class GameListItem
{
public:
GameListItem(const std::string& _rFileName, bool bUpdateCache = false);
GameListItem(const std::string& _rFileName);
~GameListItem();
bool IsValid() const {return m_Valid;}
const std::string& GetFileName() const {return m_FileName;}
const std::string& GetName() const {return m_Name;}
const std::string& GetName(int index) const;
const std::string& GetCompany() const {return m_Company;}
const std::string& GetDescription() const {return m_Description;}
const std::string& GetDescription(int index) const;
const std::string& GetUniqueID() const {return m_UniqueID;}
DiscIO::IVolume::ECountry GetCountry() const {return m_Country;}
const std::string& GetIssues() const {return m_Issues;}
@ -43,12 +43,11 @@ public:
#endif
void DoState(PointerWrap &p);
private:
std::string m_FileName;
std::string m_Name;
std::string m_Name[6];
std::string m_Company;
std::string m_Description;
std::string m_Description[6];
std::string m_UniqueID;
std::string m_Issues;