Eliminate the wstring game name.

Some cleanup throughout related code. (try to make logic in ISOFile understandable by a human)
Encode strings in UTF-8 rather than somehow trying to determine the encoding in the GUI code.

Non-windows OSes temporarily broken.
This commit is contained in:
Jordan Woyak
2013-03-02 19:46:55 -06:00
parent 2b1af36900
commit 6c8adf6130
22 changed files with 243 additions and 411 deletions

View File

@ -168,21 +168,17 @@ std::string CVolumeWiiCrypted::GetMakerID() const
return makerID;
}
std::string CVolumeWiiCrypted::GetName() const
std::vector<std::string> CVolumeWiiCrypted::GetNames() const
{
if (m_pReader == NULL)
std::vector<std::string> names;
char name[0xFF] = {};
if (m_pReader != NULL && Read(0x20, 0x60, (u8*)&name))
{
return std::string();
names.push_back(name);
}
char name[0xFF];
if (!Read(0x20, 0x60, (u8*)&name))
{
return std::string();
}
return name;
return names;
}
u32 CVolumeWiiCrypted::GetFSTSize() const