diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2009-05-22 07:14:34 +0000 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2009-05-22 07:14:34 +0000 |
| commit | 32691cfad7c0dfd11b08fd36aebbcd4b82d7f7f3 (patch) | |
| tree | 910a9334a7e5168fbfc5681fb9314ce2746bc85b /Source/Core/DiscIO/Src/CompressedBlob.cpp | |
| parent | 6a8da15f515d08ea7ca3d6c6f5c9cc22f50ca9a3 (diff) | |
DiscScrubber: fail gracefully on corrupt images
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3272 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/CompressedBlob.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/CompressedBlob.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/Src/CompressedBlob.cpp b/Source/Core/DiscIO/Src/CompressedBlob.cpp index 387a0bee47..0b94073c5e 100644 --- a/Source/Core/DiscIO/Src/CompressedBlob.cpp +++ b/Source/Core/DiscIO/Src/CompressedBlob.cpp @@ -169,7 +169,10 @@ bool CompressFileToBlob(const char* infile, const char* outfile, u32 sub_type, if (sub_type == 1) { if (!DiscScrubber::Scrub(infile, callback, arg)) + { + PanicAlert("%s failed to be scrubbed. Probably the image is corrupt.", infile); return false; + } } FILE* inf = fopen(infile, "rb"); |
