Commit b79bf63f authored by Jean-Philip Desjardins's avatar Jean-Philip Desjardins
Browse files

Fix iOS build.

parent 0162db22
......@@ -37,7 +37,7 @@ void CPsfRarArchive::Open(const boost::filesystem::path& filePath)
if(!arc->IsArcDir())
{
FILEINFO fileInfo;
fileInfo.name = string_cast<std::string>(arc->FileHead.FileName);
fileInfo.name = string_cast<std::string, wchar_t>(arc->FileHead.FileName);
boost::replace_all(fileInfo.name, "\\", "/");
fileInfo.length = static_cast<unsigned int>(arc->FileHead.UnpSize);
m_files.push_back(fileInfo);
......@@ -71,7 +71,7 @@ void CPsfRarArchive::ReadFileContents(const char* fileName, void* buffer, unsign
{
if(!arc->IsArcDir())
{
bool isGoodFile = !stricmp(fixedFileName.c_str(), string_cast<std::string>(arc->FileHead.FileName).c_str());
bool isGoodFile = !stricmp(fixedFileName.c_str(), string_cast<std::string, wchar_t>(arc->FileHead.FileName).c_str());
dataIo.SetFiles(arc, NULL);
dataIo.SetPackedSizeToRead(arc->FileHead.PackSize);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment