2013-04-18 05:09:55 +02:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2009-05-21 21:19:15 +02:00
|
|
|
|
|
|
|
|
2014-11-14 03:28:27 +01:00
|
|
|
// DiscScrubber removes the garbage data from discs (currently Wii only) which
|
2009-05-21 21:19:15 +02:00
|
|
|
// is on the disc due to encryption
|
|
|
|
|
2014-11-14 03:28:27 +01:00
|
|
|
// It could be adapted to GameCube discs, but the gain is most likely negligible,
|
2009-05-21 21:19:15 +02:00
|
|
|
// and having 1:1 backups of discs is always nice when they are reasonably sized
|
|
|
|
|
|
|
|
// Note: the technique is inspired by Wiiscrubber, but much simpler - intentionally :)
|
|
|
|
|
2014-02-10 19:54:46 +01:00
|
|
|
#pragma once
|
2009-05-21 21:19:15 +02:00
|
|
|
|
2014-03-12 20:33:41 +01:00
|
|
|
#include <string>
|
2014-02-17 11:18:15 +01:00
|
|
|
#include "Common/CommonTypes.h"
|
2009-05-21 21:19:15 +02:00
|
|
|
|
2014-02-21 01:47:53 +01:00
|
|
|
namespace File { class IOFile; }
|
2009-05-21 21:19:15 +02:00
|
|
|
|
|
|
|
namespace DiscIO
|
|
|
|
{
|
|
|
|
|
|
|
|
namespace DiscScrubber
|
|
|
|
{
|
|
|
|
|
2014-03-12 20:33:41 +01:00
|
|
|
bool SetupScrub(const std::string& filename, int block_size);
|
2014-11-27 17:57:49 +01:00
|
|
|
size_t GetNextBlock(File::IOFile& in, u8* buffer);
|
2010-02-08 23:46:04 +01:00
|
|
|
void Cleanup();
|
2009-05-21 21:19:15 +02:00
|
|
|
|
|
|
|
} // namespace DiscScrubber
|
|
|
|
|
|
|
|
} // namespace DiscIO
|