mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 07:09:03 +00:00
Create necessary folder when using Redump.org integration
This was making it impossible to use the Redump.org integration without first manually creating a Redump folder in the Cache folder. https://bugs.dolphin-emu.org/issues/11885
This commit is contained in:
parent
c6da1f050b
commit
2f1b2c6adf
1 changed files with 3 additions and 1 deletions
|
@ -153,7 +153,9 @@ RedumpVerifier::DownloadStatus RedumpVerifier::DownloadDatfile(const std::string
|
||||||
return system_not_available_match ? DownloadStatus::SystemNotAvailable : DownloadStatus::Fail;
|
return system_not_available_match ? DownloadStatus::SystemNotAvailable : DownloadStatus::Fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
File::IOFile(output_path, "wb").WriteBytes(result->data(), result->size());
|
File::CreateFullPath(output_path);
|
||||||
|
if (!File::IOFile(output_path, "wb").WriteBytes(result->data(), result->size()))
|
||||||
|
ERROR_LOG(DISCIO, "Failed to write downloaded datfile to %s", output_path.c_str());
|
||||||
return DownloadStatus::Success;
|
return DownloadStatus::Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue