more fixes...

This commit is contained in:
Aishou 2014-03-04 09:37:28 +01:00
parent 354cf24302
commit d32025ae3c
2 changed files with 4 additions and 4 deletions

View File

@ -188,7 +188,7 @@ int Unpack(wxFile& pkg_f, std::string src, std::string dst)
PKGHeader* m_header = (PKGHeader*) malloc (sizeof(PKGHeader));
wxFile dec_pkg_f;
std::string decryptedFile = wxGetCwd() + "/dev_hdd1/" + src + ".dec";
std::string decryptedFile = wxGetCwd().ToStdString() + "/dev_hdd1/" + src + ".dec";
dec_pkg_f.Create(decryptedFile, true);
@ -219,4 +219,4 @@ int Unpack(wxFile& pkg_f, std::string src, std::string dst)
wxRemoveFile(decryptedFile);
return 0;
}
}

View File

@ -525,7 +525,7 @@ bool SELFDecrypter::GetKeyFromRap(u8 *content_id, u8 *npdrm_key)
return false;
}
ConLog.Write("Loading RAP file %s", ci_str + ".rap");
ConLog.Write("Loading RAP file %s", ci_str.wc_str() + wchar_t(".rap"));
rap_file.Read(rap_key, 0x10);
rap_file.Close();
@ -671,4 +671,4 @@ bool DecryptSelf(const std::string& elf, const std::string& self)
}
return true;
}
}