diff options
| author | Mat M <mathew1800@gmail.com> | 2019-10-26 15:51:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-26 15:51:25 -0400 |
| commit | 427d4501bc9bd9b1c1c43f6213765be3e9fcb73c (patch) | |
| tree | 4b52a7b1b2192b27ae13eedbbc4308a41ac5d4f8 /Source/Core/DiscIO/VolumeVerifier.cpp | |
| parent | cc6a1193b06a1c8848901642c73dae36a1c0379b (diff) | |
| parent | 2210a0a70c6fa34ffa2f9a3aa7069d2081b9da2d (diff) | |
Merge pull request #8429 from JosJuice/redump-create-path
Create necessary folder when using Redump.org integration
Diffstat (limited to 'Source/Core/DiscIO/VolumeVerifier.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeVerifier.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp index df633f59d7..aed3c87a44 100644 --- a/Source/Core/DiscIO/VolumeVerifier.cpp +++ b/Source/Core/DiscIO/VolumeVerifier.cpp @@ -153,7 +153,9 @@ RedumpVerifier::DownloadStatus RedumpVerifier::DownloadDatfile(const std::string 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; } |
