2013-04-17 21:09:55 -06:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2009-05-21 13:19:15 -06:00
|
|
|
|
|
|
|
|
|
|
|
// DiscScrubber removes the garbage data from discs (currently wii only) which
|
|
|
|
// is on the disc due to encryption
|
|
|
|
|
|
|
|
// It could be adapted to gc discs, but the gain is most likely negligible,
|
|
|
|
// 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 11:54:46 -07:00
|
|
|
#pragma once
|
2009-05-21 13:19:15 -06:00
|
|
|
|
2014-03-12 13:33:41 -06:00
|
|
|
#include <string>
|
2014-02-17 03:18:15 -07:00
|
|
|
#include "Common/CommonTypes.h"
|
2009-05-21 13:19:15 -06:00
|
|
|
|
2014-02-20 17:47:53 -07:00
|
|
|
namespace File { class IOFile; }
|
2009-05-21 13:19:15 -06:00
|
|
|
|
|
|
|
namespace DiscIO
|
|
|
|
{
|
|
|
|
|
|
|
|
namespace DiscScrubber
|
|
|
|
{
|
|
|
|
|
2014-03-12 13:33:41 -06:00
|
|
|
bool SetupScrub(const std::string& filename, int block_size);
|
2013-01-31 14:29:29 -07:00
|
|
|
void GetNextBlock(File::IOFile& in, u8* buffer);
|
2010-02-08 15:46:04 -07:00
|
|
|
void Cleanup();
|
2009-05-21 13:19:15 -06:00
|
|
|
|
|
|
|
} // namespace DiscScrubber
|
|
|
|
|
|
|
|
} // namespace DiscIO
|