Merge pull request #922 from lioncash/export
DolphinWX: Fix exporting of Wii save files
This commit is contained in:
commit
4bbf96ffd2
|
@ -445,10 +445,9 @@ void CWiiSaveCrypted::ExportWiiSaveFiles()
|
||||||
m_valid = false;
|
m_valid = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<u8> file_data, file_data_enc;
|
std::vector<u8> file_data(file_size_rounded);
|
||||||
file_data.reserve(file_size_rounded);
|
std::vector<u8> file_data_enc(file_size_rounded);
|
||||||
file_data_enc.reserve(file_size_rounded);
|
|
||||||
memset(&file_data[0], 0, file_size_rounded);
|
|
||||||
if (!raw_save_file.ReadBytes(&file_data[0], file_size))
|
if (!raw_save_file.ReadBytes(&file_data[0], file_size))
|
||||||
{
|
{
|
||||||
ERROR_LOG(CONSOLE, "Failed to read data from file: %s",
|
ERROR_LOG(CONSOLE, "Failed to read data from file: %s",
|
||||||
|
|
Loading…
Reference in New Issue