add wstring name(s)/description to the cachefile, use when available in gamelist and properties window
This commit is contained in:
parent
7f4efa094e
commit
de4e3e7462
|
@ -155,6 +155,20 @@ public:
|
||||||
(*ptr) += stringLen;
|
(*ptr) += stringLen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Do(std::wstring &x)
|
||||||
|
{
|
||||||
|
int stringLen = sizeof(wchar_t)*((int)x.length() + 1);
|
||||||
|
Do(stringLen);
|
||||||
|
|
||||||
|
switch (mode) {
|
||||||
|
case MODE_READ: x = (wchar_t*)*ptr; break;
|
||||||
|
case MODE_WRITE: memcpy(*ptr, x.c_str(), stringLen); break;
|
||||||
|
case MODE_MEASURE: break;
|
||||||
|
case MODE_VERIFY: _dbg_assert_msg_(COMMON, x == (wchar_t*)*ptr, "Savestate verification failure: \"%s\" != \"%s\" (at %p).\n", x.c_str(), (wchar_t*)*ptr, ptr); break;
|
||||||
|
}
|
||||||
|
(*ptr) += stringLen;
|
||||||
|
}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
void DoArray(T *x, int count) {
|
void DoArray(T *x, int count) {
|
||||||
DoVoid((void *)x, sizeof(T) * count);
|
DoVoid((void *)x, sizeof(T) * count);
|
||||||
|
|
|
@ -466,8 +466,8 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
|
||||||
// Set the game's banner in the second column
|
// Set the game's banner in the second column
|
||||||
SetItemColumnImage(_Index, COLUMN_BANNER, ImageIndex);
|
SetItemColumnImage(_Index, COLUMN_BANNER, ImageIndex);
|
||||||
|
|
||||||
if (rISOFile.GetPlatform() != GameListItem::WII_WAD)
|
std::wstring wname;
|
||||||
{
|
const std::wstring& wdescription = rISOFile.GetDescription();
|
||||||
std::string company;
|
std::string company;
|
||||||
|
|
||||||
// We show the company string on Gamecube only
|
// We show the company string on Gamecube only
|
||||||
|
@ -480,6 +480,7 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
|
||||||
case DiscIO::IVolume::COUNTRY_TAIWAN:
|
case DiscIO::IVolume::COUNTRY_TAIWAN:
|
||||||
case DiscIO::IVolume::COUNTRY_JAPAN:
|
case DiscIO::IVolume::COUNTRY_JAPAN:
|
||||||
{
|
{
|
||||||
|
rISOFile.GetName(wname, -1);
|
||||||
wxString name = wxString(rISOFile.GetName(0).c_str(), SJISConv);
|
wxString name = wxString(rISOFile.GetName(0).c_str(), SJISConv);
|
||||||
m_gameList.append(StringFromFormat("%s (J)\n", (const char *)name.c_str()));
|
m_gameList.append(StringFromFormat("%s (J)\n", (const char *)name.c_str()));
|
||||||
SetItem(_Index, COLUMN_TITLE, name, -1);
|
SetItem(_Index, COLUMN_TITLE, name, -1);
|
||||||
|
@ -489,20 +490,23 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DiscIO::IVolume::COUNTRY_USA:
|
case DiscIO::IVolume::COUNTRY_USA:
|
||||||
m_gameList.append(StringFromFormat("%s (U)\n", rISOFile.GetName(0).c_str()));
|
rISOFile.GetName(wname);
|
||||||
SetItem(_Index, COLUMN_TITLE,
|
SetItem(_Index, COLUMN_TITLE,
|
||||||
wxString::From8BitData(rISOFile.GetName(0).c_str()), -1);
|
wxString::From8BitData(rISOFile.GetName(0).c_str()), -1);
|
||||||
|
m_gameList.append(StringFromFormat("%s (U)\n", rISOFile.GetName(0).c_str()));
|
||||||
SetItem(_Index, COLUMN_NOTES,
|
SetItem(_Index, COLUMN_NOTES,
|
||||||
wxString::From8BitData(company.size() ?
|
wxString::From8BitData(company.size() ?
|
||||||
company.c_str() : rISOFile.GetDescription(0).c_str()), -1);
|
company.c_str() : rISOFile.GetDescription(0).c_str()), -1);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
m_gameList.append(StringFromFormat("%s (E)\n",
|
rISOFile.GetName(wname, SConfig::GetInstance().m_LocalCoreStartupParameter.SelectedLanguage);
|
||||||
rISOFile.GetName(SConfig::GetInstance().m_LocalCoreStartupParameter.SelectedLanguage).c_str()));
|
|
||||||
SetItem(_Index, COLUMN_TITLE,
|
SetItem(_Index, COLUMN_TITLE,
|
||||||
wxString::From8BitData(
|
wxString::From8BitData(
|
||||||
rISOFile.GetName(SConfig::GetInstance().m_LocalCoreStartupParameter.SelectedLanguage).c_str()),
|
rISOFile.GetName(SConfig::GetInstance().m_LocalCoreStartupParameter.SelectedLanguage).c_str()),
|
||||||
-1);
|
-1);
|
||||||
|
m_gameList.append(StringFromFormat("%s (E)\n",
|
||||||
|
rISOFile.GetName(SConfig::GetInstance().m_LocalCoreStartupParameter.SelectedLanguage).c_str()));
|
||||||
SetItem(_Index, COLUMN_NOTES,
|
SetItem(_Index, COLUMN_NOTES,
|
||||||
wxString::From8BitData(company.size() ?
|
wxString::From8BitData(company.size() ?
|
||||||
company.c_str() :
|
company.c_str() :
|
||||||
|
@ -510,15 +514,12 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
|
||||||
-1);
|
-1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else // It's a Wad file
|
if (wname.length())
|
||||||
{
|
SetItem(_Index, COLUMN_TITLE, wname, -1);
|
||||||
m_gameList.append(StringFromFormat("%s (WAD)\n", rISOFile.GetName(0).c_str()));
|
if (wdescription.length())
|
||||||
SetItem(_Index, COLUMN_TITLE,
|
SetItem(_Index, COLUMN_NOTES, wdescription, -1);
|
||||||
wxString(rISOFile.GetName(0).c_str(), SJISConv), -1);
|
|
||||||
SetItem(_Index, COLUMN_NOTES,
|
|
||||||
wxString(rISOFile.GetDescription(0).c_str(), SJISConv), -1);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
// Emulation state
|
// Emulation state
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
#include "ChunkFile.h"
|
#include "ChunkFile.h"
|
||||||
#include "../resources/no_banner.cpp"
|
#include "../resources/no_banner.cpp"
|
||||||
|
|
||||||
#define CACHE_REVISION 0x10B
|
#define CACHE_REVISION 0x10C
|
||||||
|
|
||||||
#define DVD_BANNER_WIDTH 96
|
#define DVD_BANNER_WIDTH 96
|
||||||
#define DVD_BANNER_HEIGHT 32
|
#define DVD_BANNER_HEIGHT 32
|
||||||
|
@ -63,18 +63,26 @@ GameListItem::GameListItem(const std::string& _rFileName)
|
||||||
if (!DiscIO::IsVolumeWadFile(pVolume))
|
if (!DiscIO::IsVolumeWadFile(pVolume))
|
||||||
m_Platform = DiscIO::IsVolumeWiiDisc(pVolume) ? WII_DISC : GAMECUBE_DISC;
|
m_Platform = DiscIO::IsVolumeWiiDisc(pVolume) ? WII_DISC : GAMECUBE_DISC;
|
||||||
else
|
else
|
||||||
|
{
|
||||||
m_Platform = WII_WAD;
|
m_Platform = WII_WAD;
|
||||||
|
pVolume->GetWName(m_wNames);
|
||||||
|
}
|
||||||
|
|
||||||
m_Company = "N/A";
|
m_Company = "N/A";
|
||||||
for (int i = 0; i < 6; i++)
|
|
||||||
{
|
|
||||||
m_Name[i] = pVolume->GetName();
|
m_Name[0] = pVolume->GetName();
|
||||||
if(m_Name[i] == "") // Couldn't find the name in the WAD...
|
|
||||||
|
if(m_Name[0] == "") // Couldn't find the name in the WAD...
|
||||||
{
|
{
|
||||||
std::string FileName;
|
std::string FileName;
|
||||||
SplitPath(_rFileName, NULL, &FileName, NULL);
|
SplitPath(m_FileName, NULL, &FileName, NULL);
|
||||||
m_Name[i] = FileName; // Then just display the filename... Better than something like "No Name"
|
m_Name[0] = FileName; // Then just display the filename... Better than something like "No Name"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < 6; i++)
|
||||||
|
{
|
||||||
|
m_Name[i] = m_Name[0];
|
||||||
m_Description[i] = "No Description";
|
m_Description[i] = "No Description";
|
||||||
}
|
}
|
||||||
m_Country = pVolume->GetCountry();
|
m_Country = pVolume->GetCountry();
|
||||||
|
@ -95,9 +103,13 @@ GameListItem::GameListItem(const std::string& _rFileName)
|
||||||
{
|
{
|
||||||
if (pBannerLoader->IsValid())
|
if (pBannerLoader->IsValid())
|
||||||
{
|
{
|
||||||
pBannerLoader->GetName(m_Name); //m_Country == DiscIO::IVolume::COUNTRY_JAP ? 1 : 0);
|
m_wNames.clear();
|
||||||
|
if (!pBannerLoader->GetName(m_wNames))
|
||||||
|
pBannerLoader->GetName(m_Name);
|
||||||
pBannerLoader->GetCompany(m_Company);
|
pBannerLoader->GetCompany(m_Company);
|
||||||
|
if (!pBannerLoader->GetDescription(m_wDescription))
|
||||||
pBannerLoader->GetDescription(m_Description);
|
pBannerLoader->GetDescription(m_Description);
|
||||||
|
|
||||||
if (pBannerLoader->GetBanner(g_ImageTemp))
|
if (pBannerLoader->GetBanner(g_ImageTemp))
|
||||||
{
|
{
|
||||||
// resize vector to image size
|
// resize vector to image size
|
||||||
|
@ -116,6 +128,25 @@ GameListItem::GameListItem(const std::string& _rFileName)
|
||||||
|
|
||||||
delete pFileSystem;
|
delete pFileSystem;
|
||||||
}
|
}
|
||||||
|
std::vector<std::wstring>::iterator i, end = m_wNames.end();
|
||||||
|
std::wstring wFileName;
|
||||||
|
for (i = m_wNames.begin(); i != end; ++i)
|
||||||
|
{
|
||||||
|
if (*i == L"")
|
||||||
|
{
|
||||||
|
if (!wFileName.length())
|
||||||
|
{
|
||||||
|
std::string FileName;
|
||||||
|
SplitPath(m_FileName, NULL, &FileName, NULL);
|
||||||
|
int length = FileName.length();
|
||||||
|
wFileName.reserve(length+1);
|
||||||
|
for (int i = 0; i < length; ++i)
|
||||||
|
wFileName.push_back(FileName[i]);
|
||||||
|
wFileName.push_back(0);
|
||||||
|
}
|
||||||
|
*i = wFileName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
delete pVolume;
|
delete pVolume;
|
||||||
|
|
||||||
|
@ -172,9 +203,31 @@ void GameListItem::DoState(PointerWrap &p)
|
||||||
{
|
{
|
||||||
p.Do(m_Name[0]); p.Do(m_Name[1]); p.Do(m_Name[2]);
|
p.Do(m_Name[0]); p.Do(m_Name[1]); p.Do(m_Name[2]);
|
||||||
p.Do(m_Name[3]); p.Do(m_Name[4]); p.Do(m_Name[5]);
|
p.Do(m_Name[3]); p.Do(m_Name[4]); p.Do(m_Name[5]);
|
||||||
|
|
||||||
|
int wNamesSize = m_wNames.size();
|
||||||
|
p.Do(wNamesSize);
|
||||||
|
|
||||||
|
if (p.mode == p.MODE_READ)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < wNamesSize; ++i)
|
||||||
|
{
|
||||||
|
std::wstring temp;
|
||||||
|
p.Do(temp);
|
||||||
|
m_wNames.push_back(temp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (int i = 0; i < wNamesSize; ++i)
|
||||||
|
{
|
||||||
|
p.Do(m_wNames[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
p.Do(m_Company);
|
p.Do(m_Company);
|
||||||
p.Do(m_Description[0]); p.Do(m_Description[1]); p.Do(m_Description[2]);
|
p.Do(m_Description[0]); p.Do(m_Description[1]); p.Do(m_Description[2]);
|
||||||
p.Do(m_Description[3]); p.Do(m_Description[4]); p.Do(m_Description[5]);
|
p.Do(m_Description[3]); p.Do(m_Description[4]); p.Do(m_Description[5]);
|
||||||
|
p.Do(m_wDescription);
|
||||||
p.Do(m_UniqueID);
|
p.Do(m_UniqueID);
|
||||||
p.Do(m_FileSize);
|
p.Do(m_FileSize);
|
||||||
p.Do(m_VolumeSize);
|
p.Do(m_VolumeSize);
|
||||||
|
@ -211,6 +264,11 @@ const std::string& GameListItem::GetDescription(int index) const
|
||||||
return m_Description[0];
|
return m_Description[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const std::wstring& GameListItem::GetDescription() const
|
||||||
|
{
|
||||||
|
return m_wDescription;
|
||||||
|
}
|
||||||
|
|
||||||
const std::string& GameListItem::GetName(int index) const
|
const std::string& GameListItem::GetName(int index) const
|
||||||
{
|
{
|
||||||
if ((index >=0) && (index < 6))
|
if ((index >=0) && (index < 6))
|
||||||
|
@ -220,6 +278,28 @@ const std::string& GameListItem::GetName(int index) const
|
||||||
return m_Name[0];
|
return m_Name[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool GameListItem::GetName(std::wstring& wName, int index) const
|
||||||
|
{
|
||||||
|
// This function will only succeed for wii discs with banners or WADs
|
||||||
|
// utilize the same array as for gc discs (-1= Japanese, 0 = English etc
|
||||||
|
index++;
|
||||||
|
if ((index >=0) && (index < 10))
|
||||||
|
{
|
||||||
|
if (m_wNames.size() > index)
|
||||||
|
{
|
||||||
|
wName = m_wNames[index];
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (m_wNames.size() > 0)
|
||||||
|
{
|
||||||
|
wName = m_wNames[0];
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
const std::string GameListItem::GetWiiFSPath() const
|
const std::string GameListItem::GetWiiFSPath() const
|
||||||
{
|
{
|
||||||
DiscIO::IVolume *Iso = DiscIO::CreateVolumeFromFilename(m_FileName);
|
DiscIO::IVolume *Iso = DiscIO::CreateVolumeFromFilename(m_FileName);
|
||||||
|
|
|
@ -35,8 +35,10 @@ public:
|
||||||
bool IsValid() const {return m_Valid;}
|
bool IsValid() const {return m_Valid;}
|
||||||
const std::string& GetFileName() const {return m_FileName;}
|
const std::string& GetFileName() const {return m_FileName;}
|
||||||
const std::string& GetName(int index) const;
|
const std::string& GetName(int index) const;
|
||||||
|
bool GetName(std::wstring& wName, int index=0) const;
|
||||||
const std::string& GetCompany() const {return m_Company;}
|
const std::string& GetCompany() const {return m_Company;}
|
||||||
const std::string& GetDescription(int index) const;
|
const std::string& GetDescription(int index) const;
|
||||||
|
const std::wstring& GetDescription() const;
|
||||||
const std::string& GetUniqueID() const {return m_UniqueID;}
|
const std::string& GetUniqueID() const {return m_UniqueID;}
|
||||||
const std::string GetWiiFSPath() const;
|
const std::string GetWiiFSPath() const;
|
||||||
DiscIO::IVolume::ECountry GetCountry() const {return m_Country;}
|
DiscIO::IVolume::ECountry GetCountry() const {return m_Country;}
|
||||||
|
@ -63,8 +65,10 @@ public:
|
||||||
private:
|
private:
|
||||||
std::string m_FileName;
|
std::string m_FileName;
|
||||||
std::string m_Name[6];
|
std::string m_Name[6];
|
||||||
|
std::vector<std::wstring> m_wNames;
|
||||||
std::string m_Company;
|
std::string m_Company;
|
||||||
std::string m_Description[6];
|
std::string m_Description[6];
|
||||||
|
std::wstring m_wDescription;
|
||||||
std::string m_UniqueID;
|
std::string m_UniqueID;
|
||||||
|
|
||||||
std::string m_issues;
|
std::string m_issues;
|
||||||
|
|
|
@ -154,7 +154,15 @@ CISOProperties::CISOProperties(const std::string fileName, wxWindow* parent, wxW
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disk header and apploader
|
// Disk header and apploader
|
||||||
m_Name->SetValue(wxString(OpenISO->GetName().c_str(), wxConvUTF8));
|
|
||||||
|
std::wstring wname;
|
||||||
|
wxString name;
|
||||||
|
if (OpenGameListItem->GetName(wname))
|
||||||
|
name = wname;
|
||||||
|
else
|
||||||
|
name = wxString(OpenISO->GetName().c_str(), wxConvUTF8);
|
||||||
|
m_Name->SetValue(name);
|
||||||
|
|
||||||
m_GameID->SetValue(wxString(OpenISO->GetUniqueID().c_str(), wxConvUTF8));
|
m_GameID->SetValue(wxString(OpenISO->GetUniqueID().c_str(), wxConvUTF8));
|
||||||
switch (OpenISO->GetCountry())
|
switch (OpenISO->GetCountry())
|
||||||
{
|
{
|
||||||
|
@ -1253,10 +1261,11 @@ void CISOProperties::OnChangeBannerLang(wxCommandEvent& event)
|
||||||
|
|
||||||
void CISOProperties::ChangeBannerDetails(int lang)
|
void CISOProperties::ChangeBannerDetails(int lang)
|
||||||
{
|
{
|
||||||
if (OpenGameListItem->GetCountry() == DiscIO::IVolume::COUNTRY_JAPAN
|
std::wstring wname;
|
||||||
|| OpenGameListItem->GetCountry() == DiscIO::IVolume::COUNTRY_TAIWAN
|
wxString shortName,
|
||||||
|| OpenGameListItem->GetPlatform() == GameListItem::WII_WAD)
|
comment,
|
||||||
{
|
maker;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
wxCSConv SJISConv(*(wxCSConv*)wxConvCurrent);
|
wxCSConv SJISConv(*(wxCSConv*)wxConvCurrent);
|
||||||
static bool validCP932 = ::IsValidCodePage(932) != 0;
|
static bool validCP932 = ::IsValidCodePage(932) != 0;
|
||||||
|
@ -1271,35 +1280,48 @@ void CISOProperties::ChangeBannerDetails(int lang)
|
||||||
#else
|
#else
|
||||||
wxCSConv SJISConv(wxFontMapper::GetEncodingName(wxFONTENCODING_EUC_JP));
|
wxCSConv SJISConv(wxFontMapper::GetEncodingName(wxFONTENCODING_EUC_JP));
|
||||||
#endif
|
#endif
|
||||||
|
switch (OpenGameListItem->GetCountry())
|
||||||
wxString name = wxString(OpenGameListItem->GetName(0).c_str(), SJISConv);
|
|
||||||
|
|
||||||
// Updates the informations shown in the window
|
|
||||||
m_ShortName->SetValue(name);
|
|
||||||
m_Comment->SetValue(wxString(OpenGameListItem->GetDescription(0).c_str(), SJISConv));
|
|
||||||
m_Maker->SetValue(wxString(OpenGameListItem->GetCompany().c_str(), SJISConv));//dev too
|
|
||||||
|
|
||||||
std::string filename, extension;
|
|
||||||
SplitPath(OpenGameListItem->GetFileName(), 0, &filename, &extension);
|
|
||||||
|
|
||||||
// Also sets the window's title
|
|
||||||
SetTitle(wxString::Format(wxT("%s%s"),
|
|
||||||
wxString(StringFromFormat("%s%s: %s - ", filename.c_str(), extension.c_str(), OpenGameListItem->GetUniqueID().c_str()).c_str(), *wxConvCurrent).c_str(),
|
|
||||||
name.c_str()));
|
|
||||||
}
|
|
||||||
else // Do the same for PAL/US Games (assuming ISO 8859-1)
|
|
||||||
{
|
{
|
||||||
wxString name = wxString::From8BitData(OpenGameListItem->GetName(lang).c_str());
|
case DiscIO::IVolume::COUNTRY_TAIWAN:
|
||||||
|
case DiscIO::IVolume::COUNTRY_JAPAN:
|
||||||
|
|
||||||
m_ShortName->SetValue(name);
|
if (OpenGameListItem->GetName(wname, -1))
|
||||||
m_Comment->SetValue(wxString::From8BitData(OpenGameListItem->GetDescription(lang).c_str()));
|
shortName = wname;
|
||||||
m_Maker->SetValue(wxString::From8BitData(OpenGameListItem->GetCompany().c_str()));//dev too
|
else
|
||||||
|
shortName = wxString(OpenGameListItem->GetName(0).c_str(), SJISConv);
|
||||||
|
|
||||||
|
if ((comment = OpenGameListItem->GetDescription()).size() == 0)
|
||||||
|
comment = wxString(OpenGameListItem->GetDescription(0).c_str(), SJISConv);
|
||||||
|
maker = wxString(OpenGameListItem->GetCompany().c_str(), SJISConv);
|
||||||
|
break;
|
||||||
|
case DiscIO::IVolume::COUNTRY_USA:
|
||||||
|
if (OpenGameListItem->GetName(wname))
|
||||||
|
shortName = wname;
|
||||||
|
else
|
||||||
|
shortName = wxString::From8BitData(OpenGameListItem->GetName(0).c_str());
|
||||||
|
if ((comment = OpenGameListItem->GetDescription()).size() == 0)
|
||||||
|
comment = wxString(OpenGameListItem->GetDescription(0).c_str(), SJISConv);
|
||||||
|
maker = wxString::From8BitData(OpenGameListItem->GetCompany().c_str());
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
if (OpenGameListItem->GetName(wname, lang))
|
||||||
|
shortName = wname;
|
||||||
|
else
|
||||||
|
shortName = wxString::From8BitData(OpenGameListItem->GetName(lang).c_str());
|
||||||
|
if ((comment = OpenGameListItem->GetDescription()).size() == 0)
|
||||||
|
comment = wxString(OpenGameListItem->GetDescription(lang).c_str(), SJISConv);
|
||||||
|
maker = wxString::From8BitData(OpenGameListItem->GetCompany().c_str());
|
||||||
|
break;
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
// Updates the informations shown in the window
|
||||||
|
m_ShortName->SetValue(shortName);
|
||||||
|
m_Comment->SetValue(comment);
|
||||||
|
m_Maker->SetValue(maker);//dev too
|
||||||
|
|
||||||
std::string filename, extension;
|
std::string filename, extension;
|
||||||
SplitPath(OpenGameListItem->GetFileName(), 0, &filename, &extension);
|
SplitPath(OpenGameListItem->GetFileName(), 0, &filename, &extension);
|
||||||
|
// Also sets the window's title
|
||||||
SetTitle(wxString::Format(wxT("%s%s"),
|
SetTitle(wxString(StringFromFormat("%s%s: %s - ", filename.c_str(), extension.c_str(), OpenGameListItem->GetUniqueID().c_str()).c_str(), *wxConvCurrent)+shortName);
|
||||||
wxString::From8BitData(StringFromFormat("%s%s: %s - ", filename.c_str(), extension.c_str(), OpenGameListItem->GetUniqueID().c_str()).c_str()).c_str(),
|
|
||||||
name.c_str()));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue