Merge pull request #1003 from lioncash/wii-save-import
DolphinWX: Fix Wii save importing
This commit is contained in:
commit
218adb5515
|
@ -354,9 +354,9 @@ void CWiiSaveCrypted::ImportWiiSaveFiles()
|
|||
{
|
||||
file_size = Common::swap32(file_hdr_tmp.size);
|
||||
u32 file_size_rounded = ROUND_UP(file_size, BLOCK_SZ);
|
||||
std::vector<u8> file_data, file_data_enc;
|
||||
file_data.reserve(file_size_rounded);
|
||||
file_data_enc.reserve(file_size_rounded);
|
||||
std::vector<u8> file_data(file_size_rounded);
|
||||
std::vector<u8> file_data_enc(file_size_rounded);
|
||||
|
||||
if (!data_file.ReadBytes(&file_data_enc[0], file_size_rounded))
|
||||
{
|
||||
ERROR_LOG(CONSOLE, "Failed to read data from file %d", i);
|
||||
|
|
Loading…
Reference in New Issue