diff options
| author | hrydgard <hrydgard@gmail.com> | 2008-09-24 19:10:56 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2008-09-24 19:10:56 +0000 |
| commit | e4785df7a2ec6b1b3b45cd27cad515b8add44fc0 (patch) | |
| tree | 00c277e53c7e0da28accdac0b77210f3a7a89018 /Source/Core/DiscIO/Src/CompressedBlob.cpp | |
| parent | 284e3ec211536041cda4b754d594302f6fb9a161 (diff) | |
Ban compression of Wii images until it has been tested. All sorts of minor cleanup.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@669 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/CompressedBlob.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/CompressedBlob.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/Core/DiscIO/Src/CompressedBlob.cpp b/Source/Core/DiscIO/Src/CompressedBlob.cpp index 41194b537f..c0863a82bc 100644 --- a/Source/Core/DiscIO/Src/CompressedBlob.cpp +++ b/Source/Core/DiscIO/Src/CompressedBlob.cpp @@ -26,6 +26,7 @@ #include "Common.h"
#include "CompressedBlob.h"
+#include "FileUtil.h"
#include "Hash.h"
#ifdef _WIN32
@@ -35,11 +36,6 @@ #include "../../../../Externals/zlib/zlib.h"
#endif
-#ifdef _WIN32
-#define fseek _fseeki64
-#endif
-
-
namespace DiscIO
{
@@ -163,6 +159,11 @@ void CompressedBlobReader::GetBlock(u64 block_num, u8 *out_ptr) bool CompressFileToBlob(const char* infile, const char* outfile, u32 sub_type,
int block_size, CompressCB callback, void* arg)
{
+ if (File::GetSize(infile) > 2000000000ULL) {
+ PanicAlert("Sorry - compressing Wii games not yet supported.");
+ return false;
+ }
+
if (IsCompressedBlob(infile))
{
PanicAlert("%s is already compressed! Cannot compress it further.", infile);
|
